Im trying to make a part that leans foward 45 degress and also leans based on the cameras cframe
this is how far i got
function Stick:DirectionalLogic()
local primary = self.stick.PrimaryPart
if (primary) then
local cam_pos = Camera.CFrame.Position
primary.CFrame = CFrame.new(primary.Position) * CFrame.Angles(math.rad(45), 0, 0);
end
end
function Stick:DirectionalLogic()
local primary = self.stick.PrimaryPart
if (primary) then
local cam_pos = Camera.CFrame.Position
primary.CFrame = primary.CFrame * CFrame.Angles(0, math.rad(45), 0);
end
end