✓ Accepted answer
Here is a way to make your life easier, Make one MAIN SCRIPT for your game it's much easier, Make a ScreenGui with a TextLabel. Then put a StringValue into ReplicatedStorage name it StatusValue, Put this script into the TextLabel.
ReplicatedStorage = game:GetService("ReplicatedStorage")
Status = ReplicatedStorage.StatusValue
script.Parent.Text = Status.Value
Status.Changed:connect(function()
script.Parent.Text = Status.Value
end)
Then you put a Regular Script into workspace and write your code in there, So let me get you started with your countdown.
ReplicatedStorage = game:GetService("ReplicatedStorage")
Status = ReplicatedStorage.StatusValue
for i = 300,1,-1 do
Status.Value = i
wait(1)
end
for _. player in pairs(game.Players:GetPlayers()) do
player.Character.Torso.CFrame = CFrame.new(Spawn.Location)
end
end
I have not checked this but it should work, If it doesn't work then I might've did something wrong. Hope this helps!!
2 comments
The script just says 300 and stays at 300 and doesnt countdown
I just noticed that there are a phew mistakes in the script I will fix them now, Please remove my vote.