Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

When you are driving a transport, script adding a cash to leadersboard. How to do it?

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.

2 answers

Scriptinghelpers is not a request site, show us what you already tried and what it did/didn't do.

3 comments

0

Ok, wait a second pls.

0

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")

0

add it to your post..

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.