Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

My script to move a car doesn't work?

Asked by
lucas4114 607 Moderation Voter
8 years ago

So, the output doesn't say anything and I don't know whats wrong... :c

function drive ()
    local speed = script.Parent.Speed.Value * 100000 + 100000
    script.Parent.MainPart.BodyForce.force = Vector3.new (speed,0,0)
end

script.Parent.Speed.Value.Changed:connect(drive)
0
Are any of the parts anchored? DigitalVeer 1473 — 8y
0
nope lucas4114 607 — 8y
0
Make the number an insane number. Maybe math.huge. If this doesn't work then their is probably a structural problem. alphawolvess 1784 — 8y
0
Oh, if it does woork, then it's because you're not using enough force with the shown script. alphawolvess 1784 — 8y
0
I even tryed changing the "speed" value to something like 99999999 to see if it would be too slow and.. Well nothing happened. lucas4114 607 — 8y

Answer this question