The script is supposed to teleport a player to the position (4, 1, 7) when the timer reaches "Time Expired". No errors show up in the output window. I don't know if i'm using the if and then statement wrong.
Script 1: Located in StarterGui->Countdown->Timer
local time = script.Parent
time.Text = "10"
wait(1)
time.Text = "9"
wait(1)
time.Text = "8"
wait(1)
time.Text = "7"
wait(1)
time.Text = "6"
wait(1)
time.Text = "5"
wait(1)
time.Text = "4"
wait(1)
time.Text = "3"
wait(1)
time.Text = "2"
wait(1)
time.Text = "1"
wait(1)
time.Text = "Time Expired"
print("Finished Countdown")
Script 2: Located in ServerScriptService
local RoundClock = game.StarterGui.Countdown.Timer
if RoundClock.Text == "Time Expired" then
wait(2)
game.Workspace.Player.Torso.CFrame = CFrame.new(Vector3.new(4, 1, 7))
end

1 comment
Thank you so much!