My script which makes the model rise up from the ground when the value is at 1 is only working half the time and I don't understand why? When I look for errors there are none.

local X=script.Parent

if game.ServerStorage.Folder.prep.Value == 0 then
wait(5)
print("ya")
for i= 1, 275 do
	wait(0.01)
X:TranslateBy(Vector3.new(0, 0.1, 0))
end

end

Any help is appreciated. Thank you

2 comments

0

X.CanCollide = false

0

CanCollide isn't a valid member of models