How can I teleport all players who enter my world to a certain location?
I have been trying to make this work in a normal script, the code executes the "Moving to #1" print, but it does not actually move the character, and I have no idea why that is. The path to the SpawnPoint is correct.
02 | while #game.Players:GetPlayers() = = 0 do |
07 | for _, player in pairs (game.Players:GetPlayers()) do |
10 | print (#game.Players:GetPlayers()) |
12 | local character = player.Character or player.CharacterAdded:Wait() |
13 | local SpawnPoint = game.Workspace.Plots.Plot_ 1. SpawnPoint |
20 | character.PrimaryPart.CFrame = SpawnPoint.CFrame |
any ideas?