so, I am just working on my infinite obby. this is my code:
wait(1)
if not game.Workspace.setup.Value == 1 then
Print("[spheres] sphere created")
script.Parent.Position = Vector3.new(-55, 14, 15)
script.Parent.Position = script.Parent.Position + script.Parent.Position = Vector3.new(math.random(75),0,0)
script.parent.Transparency = 0
while true do
script.Parent.Position = script.Parent.Position + script.Parent.Position = Vector3.new(0,0,1)
if game.Workspace.reset.Value == 1 then
script.Parent:Destroy()
end
end
else
print("[spheres] sphere controller has started")
script.Parent.Transparency = 1
wait(6)
while true do
if game.Workspace.reset == 0 then
script.Parent:Clone()
wait(1.5)
end
end
end
and when I test it, my module that has the script in is vanishes. and in output, it says: 18:42:52.899 - Workspace.platforms.spheres.Part.Script:5: unexpected symbol near '=' it does not tell me where the error is, and I cant fix it. please help!

1 comment
accept his answer