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

How do I make a player constantly face an object?

I'm not very good at scripting, but I did manage to have the character face a block only once. I want to be able to have two players face each other once I have gotten the basics down.

-- This faces the player towards the target
PlayerRoot.CFrame = CFrame.new(PlayerRoot.Position, target.Position)
-- This is what I have right now, but it crashes the game for obvious reasons. I need to be able to work around it
if true then
	PlayerRoot.CFrame = CFrame.new(PlayerRoot.Position, target.Position)
end

1 answer

You’re using the wrong statement. Use a while loop rather than an if statement.

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