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.
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:"
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
;