Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

CharacterAdded Not Functioning Properly?

I have your standard CharacterAdded event set up in a script located in ServerScriptService. Mostly the event will work properly and sometimes, it won't even fire at all (usually after dying and respawning). All i'm asking is for any possible reason why this wouldn't be firing.

game.Players.PlayerAdded:Connect(function(plr)
	local Data = DataModule:Load(plr)
	plr.CharacterAdded:Connect(function(char)
		print("wow it actually fired")
	end)
end)

5 comments

0

try commenting out line 2, if that fixes it then there's a problem with that module.

0

It works fine when the user firsts joins however when they die, there's a 50/50 chance it will work.

0

Add a wait maybe??

0

Why would I need a wait?

0

I think you guys are misunderstanding me. I stated the event fires like normal when the user joins the game. The module is only referenced when the player joins the game. CharacterAdded should be firing when the player respawns.

1 answer

This discussion is preserved as it was. New answers, comments, and votes are closed.