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

How do I fix this script?

Asked by 10 years ago

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

Log in to vote
0
Answered by 10 years ago

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

Ad
Log in to vote
-1
Answered by
Perci1 4988 Trusted Moderation Voter Community Moderator
10 years ago

This is super simple...

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

Answer this question