1 | game.Players.PlayerAdded:connect( function (plr) |
2 | plr.CanLoadCharacterAppearance = false |
3 | plr.Character.Humanoid.WalkSpeed = ( 0 ) |
4 | wait( 25 ) |
5 | plr.Character.Humanoid.WalkSpeed = ( 40 ) |
6 | end ) |
Output:
Workspace.Script:3: attempt to index field 'Character' (a nil value)
Sorry if this doesn't help.
1 | wait( 0 ) |
2 | game.Players.PlayerAdded:connect( function (plr) |
3 | plr.CanLoadCharacterAppearance = false |
4 | repeat wait( 0 ) until plr.Character --I usually use that because it will repeat wait(0) until the player's Character has loaded or exists finally, until then the script probly wont go on |
5 | if plr.Character:FindFirstChild( "Humanoid" ) then --If script finds Humanoid within Character |
6 | plr.Character.Humanoid.WalkSpeed = ( 0 ) |
7 | wait( 25 ) |
8 | plr.Character.Humanoid.WalkSpeed = ( 40 ) |
9 | end ) |