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

Rotate House Model to face a part??

Asked by 3 years ago

Hi. How would I rotate my model (House) to face my buy sign? The house has an PrimaryPart associated to it and my code doesn't seems to work.

local house = game.Workspace.House --Model
local sign = game.Workspace.Sign --Normal Part

house:SetPrimaryPartCFrame(house.PrimaryPart.Position, sign.Position)

Resuming: I have a plot system which has a sign to buy land property, but the houses dont rotate on their on obviously so I tried to code something to rotate, nothing on google helped.

0
CFrame.new(house.PrimaryPart.Position, sign.Position) try this inside the setprimarypartcframe, look for errors. I'm not sure if what you did works as well but this is what I normally do greatneil80 2647 — 3y
0
It did not give error but it rotated to wrong side. You have any more ideas? LyricalFrog3 45 — 3y

Answer this question