Why my random spawn script not work??! Not error! Just it not work! Why? I don't understand why?
---< Variables
local PlayerService = game:GetService('Players')
local WorkspaceService = game:GetService('Workspace')
local Spawns = WorkspaceService.AllSpawns:GetChildren()
--< Events
PlayerService.PlayerAdded:Connect(function(Player)
Player.CharacterAdded:Connect(function(Character)
Character:MoveTo(Spawns[math.random(1, #Spawns)].Position)
end)
end)

1 comment
Add wait() before you set the players position. This is a know issue with Roblox.