Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --will show how to save in the subseries
- local repStorage = game:GetService("ReplicatedStorage")
- local remote = repStorage:FindFirstChild("BuyItem")
- local button = script.Parent
- local debounce = false
- button.MouseButton1Click:Connect(function()
- if not debounce then
- debounce = true
- local Id = 0
- remote:FireServer(Id)
- wait(0.01)
- debounce = false
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement