can someone explain why this code does not move the character?
local players = game:GetService("Players") local function characterAdded(character) wait(3) character:SetPrimaryPartCFrame(CFrame.new(0, 500, 0)) end local function playerAdded(player) player.CharacterAdded:Connect(characterAdded) end players.PlayerAdded:Connect(playerAdded)
when this code does
local Players = game:GetService("Players") Players.PlayerAdded:Connect(function(newPlayer) newPlayer.CharacterAdded:Connect(function(characterModel) wait(3) characterModel:SetPrimaryPartCFrame(CFrame.new(0, 500, 0)) end) end)