local lp = game.Players.LocalPlayer
local md = game.Workspace.Modell

function run()
--md.primary.Orientation.Y = tonumber(lp.Character.HumanoidRootPart.Orientation.Y)  <-- for somereason it doesnt changes it..
--wait(1)
md:SetPrimaryPartCFrame(CFrame.new(lp.Character.HumanoidRootPart.Position)) -- <-- this works just fine
end

script.Parent.MouseButton1Down:connect(run)

when i click it , it doesnt face the right way as the HumanoidRootPart

4 comments

0

You need to include the rotation in the SetPrimaryPartCFrame function

0

how do i do that? im new to this.

0

To elaborate... when setting the Cframe, do this... CFrame.new(normal coordinates here)*CFrame.Angles(0,0,0) Edit the Cframe.Angle values (in radians) to what rotation you need. the second value is probably the one you need to alter