Why is teleporting using :MoveTo() Unstable?
Hey Guys!
So i wrote this and it runs perfectly, then suddenly on occasion it will run once and break giving saving it cant perform a moveto on nil..?
Then on other occasions it will give that without even running once first.
I make no altercations when it does this. its simply for whatever reason non-reliable.
Can someone tell me why? or give me an alternative? I had used CFrame before but it was also shaky so I started using MoveTo.
06 | local char = game.Workspace:FindFirstChild(Hit.Parent.Name) |
07 | char:MoveTo(game.Workspace.PortalHub.Spawn.Position) |
13 | script.Parent.Touched:Connect(ontouch) |