I created this script for my mini-game place. It tends to skip the intermission?
I think this is very easy to solve
hmmmm....
local Intermission = game.Workspace.Intermission -- READ: (This is an IntValue) game.Players.LocalPlayer.CharacterAdded:Connect(function(Character) while true do wait(1) Intermission.Value = Intermission.Value - 1 script.Parent.Text = Intermission.Value if Intermission.Value == 0 then local String = "Teleporting Players..." for i = 1, #String do script.Parent.Parent.Index.Text = string.sub(String, 1, i) end wait(3) break end end end)
In this situation, i think you need to use repeat
here:
local Intermission = game.Workspace.Intermission -- READ: (This is an IntValue) game.Players.LocalPlayer.CharacterAdded:Connect(function(Character) while true do wait(1) repeat Intermission.Value = Intermission.Value - 1 script.Parent.Text = Intermission.Value wait(1) until script.Parent.Value <= 0 -- we no longer need a if statement local String = "Teleporting Players..." for i = 1, #String do script.Parent.Parent.Index.Text = string.sub(String, 1, i) end wait(3) break end end)
I hope it worked :D