local found = game.Players:FindFirstChild("Backpack").Handgun -- error line
local replicatedstorage = game:GetService("ReplicatedStorage")
local status = replicatedstorage:WaitForChild("StatusValue")
local b = workspace.B2
local a = workspace.A2
while true do
CoosenMap = math.random(1,5)
if CoosenMap == 1 then
status.Value = "Game Starting Soon"
wait(10)
status.Value = "Game Has Been Started"
wait()
game.ServerStorage.A:Clone().Parent = game.Workspace
wait()
for _,v in pairs(game.Players:GetPlayers()) do
game.ServerStorage.ActiveGuns.Handgun:Clone().Parent = v:FindFirstChild("Backpack")
wait()
for i,v in pairs(game.Players:GetChildren()) do
if v then
local torso = v.Character:FindFirstChild("Torso")
if torso then
torso.CFrame = CFrame.new(b.Position + Vector3.new(0,2,0))
wait(10)
for _,v in next, game.Players:GetPlayers() do
if v.Character:FindFirstChild("Handgun") then
v.Character.Handgun:Destroy()
wait()
game.Workspace.A:Destroy()
wait()
for i,v in pairs(game.Players:GetChildren()) do
if v then
local torso = v.Character:FindFirstChild("Torso")
if torso then
torso.CFrame = CFrame.new(a.Position + Vector3.new(0,2,0))
wait()
if found then
found:Destory()
end
end
end
end
if CoosenMap == 2 then
game.ServerStorage.B:Clone().Parent = game.Workspace
wait(2)
game.Workspace.B:Destroy()
end
end
end
end
end
end
end
end
end
-- hokyboys messy script |