for w,n in pairs(game.ReplicatedStorage.Events.Debug.AdminTeleportSpawns:InvokeServer())do local a=script.Frame:Clone()a.TextLabel.Text=n a.Parent=script.Parent.ScrollingFrame a.TP.MouseButton1Click:Connect(function()game.ReplicatedStorage.Events.Debug.Teleport:FireServer(n)end)end
--[[[for i,v in pairs(game.ReplicatedStorage.Assets.WorldIDs:GetChildren()) do
	local Frame = script.Frame:Clone()
	
	Frame.TextLabel.Text = v.Name
	
	Frame.Parent = script.Parent.ScrollingFrame
	Frame.TP.MouseButton1Click:Connect(function()
		print("Teleporting to ",Frame.TextLabel.Text)
		game:GetService("TeleportService"):Teleport(v.Value)
	end)
end]]
--for i,v in pairs(game:GetService("CollectionService"):GetTagged("AdminTeleport")) do
for i, v in pairs(game.ReplicatedStorage.Events.Debug.AdminTeleportSpawns:InvokeServer()) do
	local Frame = script.Frame:Clone()

	Frame.TextLabel.Text = v

	Frame.Parent = script.Parent.ScrollingFrame
	Frame.TP.MouseButton1Click:Connect(function()
		--game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = v.CFrame *  CFrame.new(0,3,0)
		game.ReplicatedStorage.Events.Debug.Teleport:FireServer(v)
	end)
end
