Player not moving when game published but is moving when played through the studio?
Asked by
7 years ago Edited 7 years ago
I am having a problem that I can't solve for some reason. Basically when I play my game in the studio my character movement (which is basically the player following where ever the mouse is located) works perfectly. But as soon as I publish or go into team test nothing works at all.
Please take a look at my script and tell me what is wrong.
1 | print ( "Intalizing Character Controls" ) |
3 | local mouse = game.Players.LocalPlayer:GetMouse() |
5 | mouse.Move:Connect( function () |
6 | game.Players.LocalPlayer.Character.Humanoid:MoveTo(mouse.Hit.p) |