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

CharacterAdded Not Functioning Properly?

Asked by
Hacreey 49
5 years ago

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)
0
try commenting out line 2, if that fixes it then there's a problem with that module. DanzLua 2879 — 5y
0
It works fine when the user firsts joins however when they die, there's a 50/50 chance it will work. Hacreey 49 — 5y
0
Add a wait maybe?? Alphexus 498 — 5y
0
Why would I need a wait? Hacreey 49 — 5y
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. Hacreey 49 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago
Ad

Answer this question