print("doo") game.Players.PlayerAdded:Connect(function(player) player:WaitForChild("PlayerGui") player:WaitForChild("GymRules") player.PlayerGui.GymRules.Frame.Visible = true end)
When I run the game, theres no output to this but the gui doesn't show up. I did run the game and check in my inventory if both PlayerGui and GymRules was in there, and it was. Why won't this gui popup when a player joins the game? This script is in ServerScriptService, and the gui is in StarterGui with the visibility set on 0. I've tried putting it in Workspace, but that didn't work either.
Maybe the GUI is not enabled if so this script should do
print("doo") local player = game:GetService("Players").LocalPlayer game.Players.PlayerAdded:Connect(function(player) player:WaitForChild("PlayerGui") player:WaitForChild("GymRules") player:WaitForChild("PlayerGui").GymRules.Frame.Visible = true player:WaitForChild("PlayerGui").GymRules.Enabled = true end) also make sure its a local script
goodbye!