I’m having a little bit of struggles with scripting and a model orientation. I’m new to scripting and don’t know what am doing wrong. I’ve been working on this for about an hour now and now I give up. It might be very simple to fix but again I’m new and don’t know much about scripting. Hopefully I don’t make this too complicated by basically…
I have a local script in StarterPlayerScripts.

And in that script is a few lines of code:
local Part = game.Workspace.Camera:WaitForChild("Ladder")
local Part2 = game.Workspace.Ladder2
local Open = game.Workspace.Button
local Sound = game.ReplicatedStorage.Music
local Destination = CFrame.new(-164.062, 16.655, -133.394)
local Destination2 = CFrame.new(-121.401, -2.24, -37.726)
function onClicked()
Sound:Play()
Part2:SetPrimaryPartCFrame(Destination2)
Part:SetPrimaryPartCFrame(Destination)
Part.CFrame = Destination * CFrame.fromEulerAnglesXYZ(0,123,120)
Open.CFrame = CFrame.new(-164.478, -13.578, -40.731)
end
workspace.Button.ClickDetector.MouseClick:connect(onClicked)
I also have a ladder model in Lighting. I want the Orientation of the ladder to look something like this:
But for some reason whenever I join and set everything up the ladder Orientation looks like this which is what I dont want:
So basically the ladder position is perfect but the orientation is way off and I don’t know how to fix this. Thanks and sorry if I made it a little complicated.




