here is the script i have... (i modified it from a rocket ship's go button script to make a car go by itself with out steering... kinda like Are92's cars)
__________________________________________________________________________
local engine = script.Parent.Parent.Engine
local bodyforce = engine.BodyForce
local debounce = false
function onTouched(hit)
local humanoid = hit.Parent:findFirstChild("Humanoid")
if humanoid~=nil and debounce == false then
debounce = true
script.Parent.BrickColor = BrickColor.new(21)
bodyforce.force = Vector3.new(0,0,1000)
wait(8)
--bodyforce.force = Vector3.new(math.random(-10000,10000),math.random(-10000,10000),math.random(-10000,10000))
--wait(.5)
bodyforce.force = Vector3.new(0,0,0)
script.Parent.BrickColor = BrickColor.new(28)
wait(1)
debounce = false
end
end
script.Parent.Touched:connect(onTouched)
___________________________________________________________________________
plz tell me wats wrong with this script? |