I'm trying to make custom abilities for certain people but I don't know how to do this, please help
COMMUNITY QUESTION
How do i make it so a local script waits for a specific player and then does something to them?
3 answers
game.Players:WaitForChild("PlayerName")
Local script in StarterGui / StarterPlayer.StarterPlayersScripts / StarterPack ...
game.Players.LocalPlayer.CharacterAdded:Connect(function(Character)
if Character.Name=='SwordsDestinyGames'or'name2'or'name3'then
Character.Humanoid.WalkSpeed=100 -- example
end
end)
local player = game.Players.LocalPlayer
local char = player.Character or CharacterAdded:wait()
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
Thanks alot!