This script really works but sometimes it waits player to load in can somebody help me to fix it without an error?
for i, v in pairs(Players:GetChildren()) do
local player = game.Players:GetChildren()
local Character = player.Character or player.CharacterAdded
if Character then
if Character:FindFirstChild("Win") then
Character.Win:Destroy()
end
end
wait()
for i, v in pairs(MutatorsFolder:GetChildren()) do
v.Value = false
if TimerSpeed.Value > 0 then
TimerSpeed.Value = 1
wait()
Minutes.Value = 6
Seconds.Value = 0
Multiplies.Value = 1
TimerSpeed.Value = 1
MultiplierVisible.Value = false
end
end
if v.Character and v.Character:FindFirstChildOfClass("Tool") then
v.Character.Humanoid:UnequipTools()
end
if v.Character and v:FindFirstChild("Backpack") then
v.Backpack:ClearAllChildren()
end
end
end
Is This A LocalScript?
What Are You Trying to Achieve?
No it’s script, What i’m trying to achieve is to stop the wait bug like it waits for player when they died.
What Do You Mean With Waits For the Player When They Died?
I Suppose You Mean that It Waits before The Character Can Respawn?
Or?
Yes it waits the character to respawn and i hate it because someone can troll and delay the progress of game.
You can Just Change the Respawn Time To -8 or Something To Make them Respawn Instantly.
I already do that but still the same my problem is on script read the script first.
for i, v in pairs(Players:GetChildren()) do
local player = v
local Character = player.Character
if Character then
if Character:FindFirstChild("Win") then
Character.Win:Destroy()
end
end
for i, v in pairs(MutatorsFolder:GetChildren()) do
v.Value = false
coroutine.wrap(function()
if TimerSpeed.Value > 0 then
TimerSpeed.Value = 1
wait()
Minutes.Value = 6
Seconds.Value = 0
Multiplies.Value = 1
TimerSpeed.Value = 1
MultiplierVisible.Value = false
end
end)()
end
if v.Character and v.Character:FindFirstChildOfClass("Tool") then
v.Character.Humanoid:UnequipTools()
end
if v.Character and v:FindFirstChild("Backpack") then
v.Backpack:ClearAllChildren()
end
end
Maybe try This?