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

CharacterAppearanceLoaded not firing sometimes?

Asked by 8 years ago
Edited 8 years ago
01------------------
02--[DECLARATIONS]--
03------------------
04 
05----/[SERVICES]\----
06local plrs = game:GetService("Players")
07local repStore = game:GetService("ReplicatedStorage")
08 
09----/[REMOTES]\----
10local charLoaded = repStore:WaitForChild("CharacterHasLoaded")
11 
12------------------
13--[SCRIPT LOGIC]--
14------------------
15 
View all 28 lines...

So, every time the player's character loads, it will fire a RemoteEvent to the player.

It works fine, though sometimes. I've been told by some of the players who played my game, that in random moments, this won't work.

I've been testing with these players, and I've noted that, in some cases, the print in Line 21 won't fire(which means that, CharacterAppearanceLoaded has not fired), when they reset or join the game, while I was using the in-game console.

The system I've made seem to work flawlessly for me, but not for some players.

0
Depending on how important loading the character appearance is you could make it override the wait for appearance to load at some time (like 30 seconds) tkddude2 75 — 8y
0
You used InvokeClient, which is a YieldFunction of RemoteFunctions, not RemoteEvents. Validark 1580 — 8y

2 answers

Log in to vote
0
Answered by 8 years ago

This doesn't really have to do with the scripting but useless parts in your game might cause it to be lagging. Move those useless parts to ServerStrorage

Ad
Log in to vote
0
Answered by
cabbler 1942 Moderation Voter
8 years ago

The event seems to not work sometimes. It might be better to do repeat wait(1/4) until Player:HasAppearanceLoaded()

Answer this question