Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Workspace = game:GetService("Workspace")
- local Players = game:GetService("Players")
- Cooldown = false
- Workspace.IslandOne["Shops!"].CoinShop.OpenPart.Touched:Connect(function(otherPart: BasePart)
- if not Cooldown then
- Cooldown = true
- if Players:GetPlayerFromCharacter(otherPart.Parent) then
- local Player = Players:GetPlayerFromCharacter(otherPart.Parent)
- Player.leaderstats.Coins.Value += Player.Points.Value
- Player.Points.Value = 0
- end
- wait(2)
- Cooldown = false
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement