#Item Can only be bought once

1 messages · Page 1 of 1 (latest)

rich eagle
#

and local script ``local RepStorage = game:GetService("ReplicatedStorage")
local OpenShop = RepStorage.Events:WaitForChild("OpenShopGUIEvent")
local BuyrustyShovel = RepStorage.Events:WaitForChild("RustShovelBoughtEvent")
local GUI = script.Parent.Parent
local popSFX = GUI["Pop Sound!"]
local ChaChing = GUI["Coins ka-ching"]

OpenShop.OnClientEvent:Connect(function()
GUI.Enabled = true
popSFX:Play()
end)

GUI.CloseButton.Activated:Connect(function()
GUI.Enabled = false
popSFX:Play()
end)

GUI.ScrollingFrame.RustyShovelButton.Activated:Connect(function(player)
BuyrustyShovel:FireServer(player)
ChaChing:Play()
end)``

sour jay
#

?

rich eagle
#

i think ive fixed it