It's just supposed to change the players team, zoom the GUI out off the screen, anchor the player and start a respawn countdown. Everything works, it anchors, it resets, but I can't see the countdown..
local Team = script.Parent
local p = script.Parent.Parent.Parent.Parent.Parent.Parent
function Clicked()
script.Sound:Play()
script.Parent.Parent.Parent.Parent.Parent.Parent.TeamColor = BrickColor.new("Really red")
Team:TweenPosition(UDim2.new(0, -400, 0, 0), "Out", "Quad", .25)
wait(.25)
Team.Parent.Ehre:TweenPosition(UDim2.new(0, -400, 0, 100), "Out", "Quad", .25)
local c = p.Character
c.Torso.Anchored = true
c.Humanoid.Health = 100000
local CD = Instance.new("TextLabel", script.Parent.Parent.Parent.Parent)
CD.BackgroundTransparency = 1
CD.FontSize = Enum.FontSize.Size48
CD.Position = UDim2.new(.5, 0, 0, 0)
CD.Text = "Respawning in: 5"
wait(1)
CD.Text = "Respawning in: 4"
wait(1)
CD.Text = "Respawning in: 3"
wait(1)
CD.Text = "Respawning in: 2"
wait(1)
CD.Text = "Respawning in: 1"
wait(1)
CD.Text = "Respawning..."
wait(1)
c:BreakJoints()
end |