so i need to set the angle using cframe but it is going to happen over and over agian how do i make it happen but without it spinning, this is what i have this code makes it spin
tool.tool:SetPrimaryPartCFrame(tool.tool.Handle.CFrame * CFrame.Angles(math.rad(tool.Config.ypos.Value),0,0))
so i want it so no matter how many times it happens the angle is going to be the same if the value remains the same (i need it to happen lots of times because it needs to be updated every frame) ok i made it so it will do it
local old = 0
while true do
local new = tool.Config.ypos.Value
local diffrence = new - old
tool.tool:SetPrimaryPartCFrame(char.HumanoidRootPart.CFrame)
tool.tool:SetPrimaryPartCFrame(tool.tool.Handle.CFrame * CFrame.Angles(new,0,0))old = new
end
