I want something looks like in Vehicle Simulator, when you're driving a car or other vehicle adding money to leadersboard. But how to do it? If you know — put script for Roblox.
COMMUNITY QUESTION
When you are driving a transport, script adding a cash to leadersboard. How to do it?
2 answers
Scriptinghelpers is not a request site, show us what you already tried and what it did/didn't do.
local db = 0 function onTouched(hit) if db == 0 then db = 1
local owner = script.Parent.Parent.Parent.Parent.Parent.Name
local user = game.Players:findFirstChild(owner)
local stats = user:findFirstChild("leaderstats")
while true do wait() if script.Parent.Throttle == 1 then wait(1) local cash = stats:findFirstChild("Money") cash.Value = cash.Value + 250 --Edit This!! end end db = 0 end end
script.Parent.Touched:connect(onTouched)
Try to fix! It doesn't work.
This discussion is preserved as it was. New answers, comments, and votes are closed.

3 comments
Ok, wait a second pls.
local db = 0 function onTouched(hit) if db == 0 then db = 1 local owner = script.Parent.Parent.Parent.Parent.Parent.Name local user = game.Players:findFirstChild(owner) local stats = user:findFirstChild("leaderstats") while true do wait() if script.Parent.Throttle == 1 then wait(1) local cash = stats:findFirstChild("Money")
add it to your post..