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.
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.