Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Explanation why this is not working? [Solution Found]

This is supposed to spawn the character at the coordinates below, but doesn't seem to work.

game.Players.PlayerAdded:connect(function(player)

player.CharacterAdded:connect(function(Character)

Character.Torso.CFrame = CFrame.new(-49, 1, 9)

end) end)

1 answer

I don't see any errors, but you should wait for the torso to become available first by using the WaitForChild() method, since it could be non-existant.

game.Players.PlayerAdded:connect(function(player) 
player.CharacterAdded:connect(function(Character)

Character:WaitForChild("Torso").CFrame = CFrame.new(-49, 1, 9)

end) end)

2 comments

0

Thanks, I figured out another way though. I appreciate your help anyways.

0

No problem.

This discussion is preserved as it was. New answers, comments, and votes are closed.