I made this LocalScript in StarterPlayerScripts that fires when a player touches 8 specific parts. It is supposed to change a Frame's visiblity property to true, but it doesn't.
local showGUIEvent= game.ReplicatedStorage.ShowGUIEvent
showGUIEvent.OnClientEvent:Connect(function()
local gui = game.StarterGui.NutGear
local frame = gui.YouGot
frame.Visible = true
-- debug
print("You got all 8!")
print("Frame visibility is set to " .. tostring(frame.Visible))
end)
The script fires fine, and "You got all 8!" and "Frame visibilty is set to true" is printed, but the frame isn't visible.

1 comment
This worked, I knew the answer was something simple. It's game.Players.LocalPlayer.PlayerGui.NutGear though.