mouse.Move:Connect(function(direction)
if isGliding == true then
local Delta = UserInputService:GetMouseDelta()
local Value = math.sign(Delta.X)
local CurrentOrientation = self.CurrentOrientation
local RootWaistC0 = Character.LowerTorso.Root.C0
if Value > 0 then
print("Right")
RootWaistC0 = RootWaistC0 * CFrame.Angles(0,0,math.rad(-1.5))
else
print("Left")
RootWaistC0 = RootWaistC0 * CFrame.Angles(0,0,math.rad(1.5))
end
end
end)
So this was working perfectly fine before I left for class, but now its not working at all. I was planning on also using a variable and clamping it in order to limit the angle. Any help would be much appreciated as I really have no idea why this happened out of the blue.
You are only updating the variable and not changing the property
mouse.Move:Connect(function(direction)
if isGliding == true then
local Delta = UserInputService:GetMouseDelta()
local Value = math.sign(Delta.X)
local CurrentOrientation = self.CurrentOrientation
local RootWaistC0 = Character.LowerTorso.Root.C0
if Value > 0 then
print("Right")
Character.LowerTorso.Root.C0 = RootWaistC0 * CFrame.Angles(0,0,math.rad(-1.5))
else
print("Left")
Character.LowerTorso.Root.C0 = RootWaistC0 * CFrame.Angles(0,0,math.rad(1.5))
end
end
end)