The output is this:
17:26:42.796 - Player:Move called, but player currently has no character.
The script that I made that moves the player is a map changer
wait(5)
print("Getting players")
local players = game.Players:GetChildren()
local cam = workspace.CurrentCamera
local num = math.random(1,1)
local player = game.Players.LocalPlayer
print(num)
if num == 1 then
game.Lighting.fa1:clone().Parent = game.Workspace
for i = 1, # players do
if players.TeamColor == 'Really red' then
players[i].Character:MoveTo(Vector3.new(-11326.1, 0.9, -1220.25))
game.Lighting.Pistol:clone().Parent = players[i].Backpack
cam.CameraType = "Custom"
else
players[i].Character:MoveTo(Vector3.new(-9950.1, 2.9, -2705.25))
game.Lighting.Pistol:clone().Parent = players[i].Backpack
cam.CameraType = "Custom"
end
end
end
|