wait()
script.Parent.ClickDetector.MouseHoverEnter:connect(function(pl) local clickgo = game.Lighting:findFirstChild("ClickGo"):clone() clickgo.Parent = pl.PlayerGui script.Parent.BrickColor = BrickColor.new("Mid gray")
end)
script.Parent.ClickDetector.MouseHoverLeave:connect(function(pl) local clickgo1 = game.pl.PlayerGui:findFirstChild("ClickGo"):remove()
script.Parent.BrickColor = BrickColor.new("Medium stone grey")
end)
( The output says " Disconnected event because of exception " )
You should have put this in a code block to make it easier to answer.
wait() script.Parent.ClickDetector.MouseHoverEnter:connect(function(pl) local clickgo = game.Lighting:findFirstChild("ClickGo"):clone() clickgo.Parent = pl:WaitForChild("PlayerGui") script.Parent.BrickColor = BrickColor.new("Mid gray") end) script.Parent.ClickDetector.MouseHoverLeave:connect(function(pl) game.pl:WaitForChild("PlayerGui"):findFirstChild("ClickGo"):remove() script.Parent.BrickColor = BrickColor.new("Medium stone grey") end)
not sure if that will work but you could try