local rs = game.ReplicatedStorage
local tp = game.Workspace
local ss = game.ServerStorage
local timeint = 120 --round time
local inttime = 30 --intermission
local startint = 2 --teleport time
local endint = 5 --end time
local status = rs.Status
local mapstorage = tp.MapStorage
local totalmaps = ss:GetChildren()
local map1 = ss.map1
local map2 = ss.map2
local map3 = ss.map3
sound = script.Sounds
while wait() do
for i=inttime,1,-1 do
wait(1)
status.Value = "Intermission: "..i.." seconds"
end
sound.Start:Play()
for i=startint,1,-1 do
wait(1)
status.Value = "Get Ready!: "..i.." seconds"
end
wait(2)
local mapsinside = game:GetService('ServerStorage'):GetChildren()
local mapchoose = mapsinside[math.random(1,#totalmaps)]
mapchoose:Clone().Parent = mapstorage
local spawns = mapchoose:WaitForChild('Spawn'):GetChildren()
--teleports
for _, player in pairs(game.Players:GetPlayers()) do
if player and #spawns > 0 then
local torso = player.Character:WaitForChild('HumanoidRootPart')
local allspawns = math.random(1, #spawns)
local randomspawn = spawns[allspawns]
if randomspawn and torso then
table.remove(spawns, allspawns)
torso.CFrame = CFrame.new(randomspawn.Position + Vector3.new(0.2,0,0))
local knife = rs.Knife:Clone() --clones from replicatedstorage
knife.Parent = player.Backpack
end
end
end
for i=timeint,1,-1 do
wait(1)
status.Value = "Fight!: "..i.." seconds"
end
mapstorage:ClearAllChildren()
sound.End1:Play()
for i=endint,1,-1 do
wait(1)
status.Value = "End!: "..i.." seconds"
end
end
The problem is that it doesn't teleport me and doesn't give me the knife. This is just what I made from lots of tutorials on youtube. I can't find what is wrong because there are no errors. Everything else is fine.

1 comment
any errors?