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

[CFrame ] why the model is not rotated in the direction of the player?

local Players = game:GetService("Players")

Players.PlayerAdded:Connect(function(player)
	player.CharacterAdded:Connect(function(char)

	while true do
		script.Parent:SetPrimaryPartCFrame(script.Parent.Torso.CFrame, char.HumanoidRootPart.CFrame)
		wait(0.5)
	end
		
	end)
end)

I'm not good at working with vectors and CFrame:(

1 answer

✓ Accepted answer

First of all, make sure you have set a part to be the primary part.

Secondly, there is only one parameter for the SetPrimaryPartCFrame function—a CFrame value. Try doing: script.Parent:SetPrimaryParyCFrame(CFrame.new(script.Parent.PrimaryPart.Position, char.HumanoidRootPart.Position))

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