wait(15) if f.Backpack.GameState.Value == 1 then Game.Lighting.BeginnerSword:Clone().Parent = f.Backpack wait(0.1) f.Backpack.GameState:Destroy() end wait(.1) H = Instance.new("Hint") H.Parent = game.Workspace time = 122 Game_Launch_Part_Three() end)() t = t + 1 if t > #spawns then t = 1 end end wait(.1) end
Basically it will not keep on moving after the if check and it will stop at the if-check. How do I keep the script moving. I mean simply, if the script cannot find that GameState.Value == 1 in a player's backpack then it will simply move on. But it is not doing that. Why?
19:36:14.440 - GameState is not a valid member of Backpack 19:36:14.441 - Script 'Workspace.OvEngine(Game Script)', Line 108 19:36:14.442 - Stack End
That is the output.
if f.Backpack.GameState.Value == 1 then ----Line 108 Game.Lighting.BeginnerSword:Clone().Parent = f.Backpack wait(0.1) f.Backpack.GameState:Destroy() end H = Instance.new("Hint") H.Parent = game.Workspace time = 122 Game_Launch_Part_Three() end)() t = t + 1 if t > #spawns then t = 1 end end wait(.1) end
F is basically this:
for k, f in pairs(Game.Players:GetPlayers()) do coroutine.wrap(function() local blcks = spawns[t] GameState = Instance.new("IntValue") GameState.Parent = f.Backpack GameState.Name = "GameState" f.Backpack.GameState.Value = 1 f.Character.Torso.CFrame = CFrame.new(Vector3.new(blcks.Position.x,blcks.Position.y+3,blcks.Position.z)) f.Character.Humanoid.WalkSpeed = 0
There, can you tell me what the problem is now?