Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Leaderboard Script
- game.Players.PlayerAdded:Connect(function(Player)
- local Leaderboard = Instance.new("Folder")
- Leaderboard.Name = "leaderstats"
- Leaderboard.Parent = Player
- local Cash = Instance.new("IntValue")
- Cash.Name = "Cash"
- Cash.Value = 0
- Cash.Parent = Leaderboard
- end)
- --Currency Giver Script
- local Part = script.Parent
- Debounce = false
- Part.Touched:Connect(function(hit)
- if hit.Parent:FindFirstChild("Humanoid") then
- local Player = game.Players:GetPlayerFromCharacter(hit.Parent)
- if Debounce == false then
- Debounce = true
- Player.leaderstats.Cash.Value = Player.leaderstats.Cash.Value + 10
- wait(5)
- Debounce = false
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement