What I mean by this is, how do I make map for a game, create map spawns, and have all the players teleport to one. (Some might teleport to the same one, but no biggy.) I tried using CFrame ( numbers) or CFrame (numbers) to teleport to 2 different spawn points, but no luck there. Could someone please help me in this situation?
Well what I would do is go through the map which I assume is inside workspace named 'Map' in this example
local Spawns={} function loop(pi) for _,s in next,pi:GetChildren() do if s:IsA("SpawnLocation") then table.Insert(Spawns,s) elseif s:GetChildren~=nil then loop(s) end end end function SpawnPlayers() for _,pl in next,game.Players:GetChildren() local ch=math.random(#Spawns) if ch~=0 then pl.RespawnLocation=Spawns[ch] pl:LoadCharacter() end end end
Please rep me up if you like this post and I wrote this on my phone Btw :D