Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Model Orientation Problem , plz help???

Asked by 6 years ago
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

0
You need to include the rotation in the SetPrimaryPartCFrame function User#5423 17 — 6y
0
how do i do that? im new to this. Sphynks 2 — 6y
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 User#17125 0 — 6y

Answer this question