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

How can i convert a Local Script into a normal one?

Asked by 5 years ago
Edited 5 years ago

Exactly,i want to change that in the script to convert it in a normal script,but,how i do that?


repeat wait() until game.Players.LocalPlayer.Character repeat wait() until game.Players.LocalPlayer.Character:IsDescendantOf(game.Workspace local Player = game.Players.LocalPlayer --This is a different one

1 answer

Log in to vote
0
Answered by 5 years ago
Edited 5 years ago

You're going to need to grab players in a different way, instead try doing this. You are not clear on exactly what you're trying to do, but this is probably what you're looking for.

game.Players.PlayerAdded:connect(function(plr)
    plr.CharacterAdded:connect(function(char)
        repeat wait() until char.Humanoid
    end)
end)
Ad

Answer this question