I have tried scripting it my own way but it doesn't work.How do i do it?
You might want to try teleporting the player to a custom location once they spawn. Example:
player = --player you want teleported location = Vector3.new(0,5,0)--Where you want them teleported while not player.Character do wait() end --Wait for character to spawn player.Character.PrimaryPart.CFrame = CFrame.new(location) --Teleport them
Doing it this way, you can set your own spawn points based on any number of factors.