Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Have this script's Parent.Parent become visible whenever a player respawns?

Asked by
Djinous 45
8 years ago

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)
3
CharacterAdded event inside PlayerAdded event, connect the character event to making the thing visible. GoldenPhysics 474 — 8y

Answer this question