CharacterAdded (Event)

From Legacy Roblox Wiki
(Redirected from CharacterAdded)
Jump to navigationJump to search
CharacterAdded ( Instance character )
Description Fired when a character spawns or respawns.
Member of: Player


Description

character will be a Model with Humanoid, all body parts, scripts, and joints. The model will be completely loaded when triggered by game.

Example

This code will make set every player's WalkSpeed to 25 everytime they respawn:

game.Players.PlayerAdded:connect(function(player)
	player.CharacterAdded:connect(function(character)
		character.Humanoid.WalkSpeed = 25
	end)
end)