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

client-breaking bug: is this a problem with roblox's engine, or my scripting?

please watch the following video for context.

https://www.youtube.com/watch?v=LnEh67gdB0I

i have no idea what's wrong with my script. this only happens in this specific game, other games with gui-modifying scripts are working just fine.

i've tried work arounds, but all return failure. i've completely given up.

2 answers

✓ Accepted answer

You have to change the GUI which is currently inside the player you can do this by

replacing this part of your code

game.StarterGui.objectivelabel.objective.Text = "objective: escape the facility:"

with this

local PlayerGui = playerWhoClicked:WaitForChild('PlayerGui')

PlayerGui:WaitForChild('objectivelabel').objective.Text = "objective: escape the facility:"

3 comments

0

By the way if you press play and go to Players > HeroComeDatEli you will find PlayerGui there which is the one that appears on the players screen

0

thank you so much.

0

No problem have fun

Work with the PlayerGui, not the StarterGui. The StarterGui contains what is moved into the PlayerGui when the player is respawned/joining the server. Therefore any changes made to it will not be observable.

The location of the PlayerGui is localPlayer.PlayerGui, or game:GetService('Players').LocalPlayer.PlayerGui;

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