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

TextLabel text only updating when player is respawned? Change ScreenGui globally?

Asked by 5 years ago

I have a ScreenGui in the StarterGui with TextLabels that increase in number when a player is killed. It's working, but the problem is the text only changes after a player respawns and it only changes locally. So, if 3 players are killed and then i'm killed, when i respawn the TextLabel will read "4" but only for the client that has respawned(me), while to everyone else still alive it will read "0" until they are killed and respawn as well. Is there anyway I can make a ScreenGui change globally so everyone will see the same amount of people killed?

1
Thanks for displaying the code! Prestory 1395 — 5y
0
i don't see why you would need to see it ewdoggypoopoo 12 — 5y

1 answer

Log in to vote
2
Answered by
karlo_tr10 1233 Moderation Voter
5 years ago

If kill count is stored on the server you can use remote events and fire it to all clients (":FireAllClients"), if you are new to remote events this can help: https://developer.roblox.com/en-us/articles/Remote-Functions-and-Events

0
^ DogeIXX 172 — 5y
Ad

Answer this question