Hello There I am New to this site but have been playing Roblox since the summer of 2006 but anyway i have been trying to get one of those old rockets off the ground again and it would seem that the rocket propulsion object could be the answer i know this is very old code but how would i change this script in such a way that it would work again?
local engine = script.Parent.Parent.Engine
local bodyforce = engine.BodyForce
local retractor = script.Parent.Parent.Retracter
local debounce = false
function onTouched(hit)
local humanoid = hit.Parent:findFirstChild("Humanoid")
if humanoid~=nil and debounce == false then
debounce = true
retractor.CanCollide = false
script.Parent.BrickColor = BrickColor.new(21)
bodyforce.force = Vector3.new(0,600000,0)
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)
retractor.CanCollide = true
debounce = false
end
end
script.Parent.Touched:connect(onTouched)

1 comment
Maybe try uncommenting (removing the double dashes) from lines 26 and 27?