Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local add = 1
- script.Parent.Touched:connect(function(hit)
- local character = hit.Parent
- local player = game.Players.LocalPlayer
- if player then
- if script.Parent:FindFirstChild("SeatWeld") then
- script.Parent.sitting.Value = 1
- wait()
- if script.Parent.Throttle > 1 then
- wait(1)
- local user = game.Players:GetPlayerFromCharacter(hit.Parent) --Gets the Player
- local stats = user:findFirstChild("leaderstats") --Gets Leaderstats from player
- local cash = stats:findFirstChild("NAMEOFLEADERBOARDMONEY") --Put the Name of the Leaderboard money stat here
- cash.Value = cash.Value + add
- end
- else
- script.Parent.sitting.Value = 0
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment