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
6 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:

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

Answer this question