Alright so im trying to make a finding the button game. I got everything set up and i want a gui to appear when i click the button so i have it disabled initially then i want the script to enable it. This is what i have.
local lvlpassed = game.StarterGui.ScreenGui
function onClicked(playerClicked)
script.Parent.Transparency=1
lvlpassed = game.StarterGui.Enabled
wait(1)
script.Parent.Transparency=0
playerClicked.Character.HumanoidRootPart.CFrame = CFrame.new(-107.9, 1.5, -223.1)
end
script.Parent.ClickDetector.MouseClick:connect(onClicked)

1 comment
Thank you this helps a lot!