local function playgame() local timeAmount = 10 local timerText = "Remaining Time: " local tween = tweenservice:Create(workspace.Flood, TweenInfo.new(10), {Position = Vector3.new(51.5, 22.25, 27.5)}) tween:Play() wait(10) tween:Cancel() game.Workspace.Flood.Position = Vector3.new(51.5, 22.25, 27.5) while timeAmount > 0 do timeEvent:FireAllClients(timeAmount, timerText) wait(1) timeAmount -=1 end end
This is a part of the script but then this function breaks the whole game as well. Please help me! It would be nice if you explained why its broken as well. Thanks and help please, fast.