Hello devforum, so recently I came across a problem. So basically what Im trying to do is to set character’s cframe.angles, but you can’t directly “set” them, because you can only multiply them (*).
That will basically multiply my current angle by 25.
What Im trying to achieve: Get the script to SET them directly and not get them multiplied. Ive tried searching for the solution for a couple of times but that didn’t work out too well. I hope you can help me! Thanks in advance.
(This is what my script but randomized version of it looks like in-game) GIF
Well his intentions are a little unclear because it shows he’s trying to move the HumanoidRootPart which would generally be done when trying to edit the entire model.
local Player = game.Players.LocalPlayer
local Char = player.Character or player.CharacterAdded:Wait()
Char:SetPrimaryPartCFrame(Char.PrimaryPart.CFrame*CFrame.Angles(0,math.rad(90),0))
Yes, thats the case when multiplying CFrame.Angles, but thats not my problem, the problem is that Im trying to set it to a proper value and not multiply it
That does not solve my problem, with the script that I made, it wont change anything other than view angle, it wont change any CFrame properties (besides the view angle obviously) Im trying to achieve a script that will directly set my view angle (cframe.angles) to a proper value, and not multiplying it.