Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

When a player spawns, for some reason the player must wait 30secs before it moves... Why is that?

Asked by
joeldes 201 Moderation Voter
7 years ago

The title should be self explainatory.

The code is in a local script. and I already know that it is not FE blocking it.

Here is the code:

1local mouse = game.Players.LocalPlayer:GetMouse()
2--game.Players.LocalPlayer.CharacterAdded:Wait()
3game:GetService("RunService").RenderStepped:Connect(function()
4    if game.Players.LocalPlayer.Character then
5        game.Workspace[game.Players.LocalPlayer.Name].Humanoid:MoveTo(mouse.Hit.p)
6    end
7end)

Answer this question