Sometimes, this block of code doesn't execute usually when there are more players in the game. What can I do to make sure it will work without skipping any player? Could the false parameter on TweenPosition cause it to skip?
for i,v in pairs(game.Players:GetChildren()) do if (v.Character ~= nil) then if v.Character:FindFirstChild("Health")~=nil then wait() v.Character.Health:Destroy() game.Players[v.Name].PlayerGui.GameGui.Intermission:TweenPosition(UDim2.new(0.5, -50, 1, 0), "Out", "Linear", .3, false) --game.Players[v.Name].PlayerGui.GameGui.Intermission.Visible = false game.Players[v.Name].PlayerGui.LocalPlayerScripts.Intermission:Stop() end end end
I think it's the :Stop() method you called on the Intermission Gui (Frame?).