I don't want to use animations from ROBLOX Animation plugin. I want a way you can use on sb (Script Builder) with just scripts. Is there any way like this?
Using linear interpolation, you can make an animation smoothly, and more easily. You also have to use jointInstances to move the body parts
local Player = game.Players.LocalPlayer local Character = Player.Character local leftArm = Character.Torso['Left Shoulder'] -- there's also Neck(Head), Character.HumanoidRootPart(Torso), Right Shoulder(Right arm), Left Hip(Left leg), and right hip (right leg) local Run = game:GetService('RunService') local spd = .1 --how fast to get to the goal (1 being the fastest) Run.RenderStepped:connect(function() leftArm.C0 = leftArm.C0:lerp(CFrame.new(x, y, z) * CFrame.Angles(math.rad(x), math.rad(y), math.rad(z)), spd) end)
if you're looking for more smooth back and forth animation
Run.RenderStepped:connect(function() leftArm.C0 = leftArm.C0:lerp(CFrame.new(x, y, z) * CFrame.Angles(math.rad(x * math.sin(tick())), math.rad(y * math.sin(tick())), math.rad(z * math.sin(tick()))), spd) end) -- can be math.cos if you'd like, and doesn't have to be on all axis's
and don't forget to remove roblox's default animations, to do this simply use the code below
Character.Humanoid:ClearAllChildren() Character.Animate:Remove()