Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- game.Players.PlayerAdded:Connect(function(plr)
- local ls = Instance.new("Folder")
- ls.Name = "leaderstats"
- ls.Parent = plr
- local cash = Instance.new("IntValue")
- cash.Name = "Cash"
- cash.Parent = ls
- end)
- local pps = game:GetService("ProximityPromptService")
- pps.PromptTriggered:Connect(function(pp, plr)
- if pp.Name == "RobPrompt" then
- local robbedAmount = math.random(100, 500)
- plr.leaderstats.Cash.Value += robbedAmount
- pp.Enabled = false
- wait(30)
- pp.Enabled = true
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement