i keep geting a error that gamestart is not in workspace, im not sure why so please help, thx for reading.
local Players = game.Players:GetPlayers() for i,v in pairs(Players) do v.Character.Torso.CFrame = CFrame.new(target2) wait() game.Workspace.Gamestart.Value = true wait(0.5) game.Workspace.Gamestart.Value = false end
The script may be working too fast for the game. Try putting this into the script:
repeat wait() until game.Workspace:FindFirstChild("Gamestart")
This just repeats a loop until the object is found, to prevent it comming up as nil. (This could also be accomplished using :WaitForChild() , but I always run into problems using that)
So this entire script should be this:
local Players = game.Players:GetPlayers() for i,v in pairs(Players) do v.Character.Torso.CFrame = CFrame.new(target2) wait() repeat wait() until game.Workspace:FindFirstChild("Gamestart") game.Workspace.Gamestart.Value = true wait(0.5) game.Workspace.Gamestart.Value = false end
If you have any further problems/questions, please leave a comment below. Hope I helped :P