Inside of StarterPlayerScripts, there is a local script that opens a gui when another gui is pressed. It works but only until the player resets. The game is filteringenabled and I am using a Test Server instead of test mode. Any idea what is wrong here?
local Player = game.Players.LocalPlayer
local Open = Player:WaitForChild("PlayerGui"):WaitForChild("SkillGui").SkillB
local Skills = Open.Parent.Skills
--[[Open.MouseButton1Click:connect(function()
print("Clicked")
local scriptthing=Open
scriptthing.Parent.Skills.Visible=true
print("Ran")
end)]]
local function OnClicked()
print("clicked")
if Skills.Visible == false then
Skills.Visible = true
elseif
Skills.Visible == true then
Skills.Visible = false
end
end
Open.MouseButton1Click:connect(OnClicked)
