I have this code here for a gui, and I want it to become visible on respawn. How do I do that?
--On Respawn
script.Parent.Parent.Visible = true
function Click(mouse)
if game.Workspace.Flag1.Flag.Color == script.Parent.Parent.Parent.Parent.Parent.TeamColor then
script.Parent.Parent.Parent.Parent.Parent.Character.Torso.CFrame = CFrame.new(Vector3.new(-170, 11.199, -24))
script.Parent.Parent.Visible = false
end
end
script.Parent.MouseButton1Down:connect(Click)

1 comment
CharacterAdded event inside PlayerAdded event, connect the character event to making the thing visible.