Guest User

Script

a guest
Sep 30th, 2019
248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. local add = 1
  2. script.Parent.Touched:connect(function(hit)
  3. local character = hit.Parent
  4. local player = game.Players.LocalPlayer
  5.  
  6. if player then
  7. if script.Parent:FindFirstChild("SeatWeld") then
  8. script.Parent.sitting.Value = 1
  9. wait()
  10. if script.Parent.Throttle > 1 then
  11. wait(1)
  12. local user = game.Players:GetPlayerFromCharacter(hit.Parent) --Gets the Player
  13. local stats = user:findFirstChild("leaderstats") --Gets Leaderstats from player
  14. local cash = stats:findFirstChild("NAMEOFLEADERBOARDMONEY") --Put the Name of the Leaderboard money stat here
  15.  
  16. cash.Value = cash.Value + add
  17. end
  18. else
  19. script.Parent.sitting.Value = 0
  20. end
  21.  
  22. end
  23.  
  24. end)
Advertisement
Add Comment
Please, Sign In to add comment