How to make my viewmodel on its side?

  1. What do you want to achieve? Keep it simple and clear!
    So i have a placement system I made, and I want to make a view model (Roof) go on its side when placing. Right now its standing straight up.

  2. What is the issue? Include screenshots / videos if possible!
    I tried making it go on its side but it kinda goes weird, heres what it looks like.

  1. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    I have tried YT and DevForum.

Heres my code

Structure:SetPrimaryPartCFrame(CFrame.new(Raycast.Position.X, Raycast.Position.Y + Structure.PrimaryPart.Size.Y/2, Raycast.Position.Z) * CFrame.Angles(90, 0,0))
2 Likes

CFrame.Angles uses radians, not degrees. Change the CFrame.Angles part to:
CFrame.Angles(math.pi/2,0,0)

THANKS SO MUCH IT WORKS NOW, character limit

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.