How To Make A Toolshop In Roblox Studio Lite (First Video!)
Вставка
- Опубліковано 7 лют 2025
- In This video I will Show You How To Make A Toolshop In Studio Lite
Scripts:
Open gui local script:
local player = game.Players.LocalPlayer
script.Parent.MouseButton1Click:Connect(function()
player.PlayerGui.ToolShop.Frame.Visible = true
end)
Close gui local script:
local player = game.Players.LocalPlayer
script.Parent.MouseButton1Click:Connect(function()
player.PlayerGui.ToolShop.Frame.Visible = false
end)
Sword button local script:
script.Parent.MouseButton1Click:Connect(function()
game.ReplicatedStorage.ToolEvents.SwordEvent:FireServer()
end) - Ігри
nice I was really struggling on this step you deserve more views
Server script service script
game.ReplicatedStorage.ToolEvents.SwordEvent.OnServerEvent:Connect(function(player)
if player.leaderstats.Coins.Value >=10 then ---- add >= 10
player.leaderstats.Coins.Value = player.leaderstats.Coins.Value - 10 game.ServerStorage.Tools.sword:Clone().Parent = player.Backpack
end
end)
Hello this is a really nice video and mines was like 2 months ago?
ik I just started feel free to do ur choice
Make it copy able pls