I have this script that will help me test if I can freeze players in objects. But it doesn't work because of the error:
game.Players.PlayerAdded:connect(function(player)
player.CharacterAdded:connect(function(char)
local MoveTo = game.Workspace.MoveTo
char:MoveTo(MoveTo.Position)
end)
end)
In my output, I get:
15:46:19.201 - Workspace.Script:4: attempt to index local 'MoveTo' (a function value)
15:46:19.202 - Stack Begin
15:46:19.203 - Script 'Workspace.Script', Line 4.
15:46:19.203 - Stack End
I have not experienced these kind of errors. Could anyone help me debug this script? Thanks!

1 comment
Still does not work