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

How do I fix this script?

It's a crushing ceiling script I came upon, and I was wanting to use it, but it's broken. Anyway to fix it?

\Lava = script.Parent.Parent.Lava <- Area where it is broken.
LavaVelocity = Lava.BodyVelocity <- Here too.

while true do
LavaVelocity.velocity = Vector3.new(0,1,0)
wait(1)
LavaVelocity.velocity = Vector3.new(0,0,0)
wait(1)
LavaVelocity.velocity = Vector3.new(0,-200,0)
wait(1)
LavaVelocity.velocity = Vector3.new(0,0,0)
wait(1)
end

2 answers

Lava = script.Parent.Parent.Lava not /Lava = script.Parent.Parent.Lava

This is super simple...

/Lava = script.Parent.Parent.Lava
LavaVelocity = Lava.BodyVelocity --Lava is a nil value. Figure it out. 

This discussion is preserved as it was. New answers, comments, and votes are closed.