I have a LocalScript in StarterPlayerScripts and a GUI in StarterGui. My plan is for when it is clicked, it will teleport the player who clicks it to a certain position. However, it is not working for some reason. The script below is isolated so it is not confusing, as I can write the rest of the script after this is fixed.
When I activate this script, the output reads:
12:15:21.741 - QueueGui is not a valid member of PlayerGui – QueueGui is the GUI name
Here is the script:
local player = game.Players.LocalPlayer local pGui = player.PlayerGui local gui = pGui.QueueGui print(gui.Name)