-- Studio Edit command: create spawn markers on the already imported arena. local arena = workspace:FindFirstChild("HunterMonolithImport") assert(arena and not arena:FindFirstChild("PlayerSpawns"), "Arena missing or spawns already exist") local ray = RaycastParams.new() ray.FilterType = Enum.RaycastFilterType.Include ray.FilterDescendantsInstances = {arena} ray.RespectCanCollide = true local overlap = OverlapParams.new() overlap.FilterType = Enum.RaycastFilterType.Include overlap.FilterDescendantsInstances = {arena} overlap.RespectCanCollide = true local points = {{-368,-352},{-352,368},{368,352},{352,-368},{-240,-112},{240,112},{112,-240},{-112,240},{0,-320},{0,320},{-320,0},{320,0}} local folder = Instance.new("Folder") folder.Name = "PlayerSpawns" for index, xz in points do local x,z = 1600+xz[1],xz[2] local hit = workspace:Raycast(Vector3.new(x,160,z),Vector3.new(0,-180,0),ray) assert(hit and hit.Normal.Y > .95, "No flat floor at spawn "..index) assert(#workspace:GetPartBoundsInBox(CFrame.new(hit.Position+Vector3.new(0,4.2,0)),Vector3.new(8,8,8),overlap)==0,"Blocked spawn "..index) local spawn = Instance.new("SpawnLocation") spawn.Name = string.format("%02d_%s",index,if index<=8 then "Courtyard" else "Gallery") spawn.Size = Vector3.new(6,2,6) local position = hit.Position-Vector3.new(0,1,0) spawn.CFrame = CFrame.lookAt(position,Vector3.new(1600,position.Y,0)) spawn.Transparency = 1 spawn.Anchored = true spawn.CanCollide = false spawn.CanTouch = false spawn.CanQuery = false spawn.Neutral = true spawn.Enabled = true spawn.Duration = 3 spawn:SetAttribute("FloorY",hit.Position.Y) spawn.Parent = folder end folder.Parent = arena local botChanges = {} for _, marker in workspace.BotSpawns:GetChildren() do if marker:IsA("BasePart") then local old = marker.CFrame local pos = marker.Position if pos.X < 1152 or pos.X > 2048 or math.abs(pos.Z)>432 then pos=Vector3.new(1712,8,-200) end local hit=workspace:Raycast(Vector3.new(pos.X,20,pos.Z),Vector3.new(0,-24,0),ray) assert(hit,"No bot floor: "..marker.Name) marker.CFrame = CFrame.new(hit.Position+Vector3.new(0,marker.Size.Y/2,0))*old.Rotation marker.Anchored=true marker.CanCollide=false marker.CanTouch=false marker.Transparency=1 table.insert(botChanges,{name=marker.Name,before={old:GetComponents()},after={marker.CFrame:GetComponents()}}) end end return game:GetService("HttpService"):JSONEncode({spawns=#folder:GetChildren(),botChanges=botChanges})