Hello, I am making a gun system and when walking the gun shakes too much because of the walking animation. Is there a way to cancel animations on the waist motor6d? Thank you.
If Motor6D.Transform is updated on RunService.Stepped, the change overrides the animations. So perhaps this would work.
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local plr = Players.LocalPlayer
local function overrideWaistAnims()
local char = plr.Character
local lowerTorso = char and char:FindFirstChild("LowerTorso")
local waist = lowerTorso and lowerTorso:FindFirstChild("Waist")
if not waist then
return
end
waist.Transform = CFrame.new()
end
RunService.Stepped:Connect(overrideWaistAnims)
1 Like
This is my code.
runService.Stepped:Connect(function()
if character:FindFirstChild("UpperTorso"):FindFirstChild("Waist") then
character.UpperTorso.Waist.Transform = CFrame.new()
end
end)
Tried to do it in the server and in the client and none of those worked. I don’t think I am doing anything wrong.