Today I made a Shop GUI. It opens in studio, but in game it doesn't open no matter how many times I click. Any help? (I used a LocalScript fyi)
repeat wait()
Player = game.Players.LocalPlayer
Button = script.Parent
Item = game.ReplicatedStorage:FindFirstChild("GravityCoil")
Cost = 50
Money = Player.leaderstats.Money
until
Button.MouseButton1Down:connect(function(purchase)
if Money.Value > (Cost - 1) then
Money.Value = Money.Value - Cost
local a = Item:Clone()
a.Parent = Player.Backpack
local b = Item:Clone()
b.Parent = Player.StarterGear
end
end)

2 comments
What doesn't it do?
The shop doesn't open when I click on the shop button.