Okay so, im trying to make idles for all my personal items to hold in games. they arent weapons, just social things

No matter how hard i try it isn't working. I want it to also work while the player is moving. I have an animation and everything for it, it doesn't effect the legs though. The animation in general wont start, here is my script i am using a local script i placed it straight into the tool the 0000's in the script are where i put the id of it

local player = game.Players.LocalPlayer
local character = player.Character
local humanoid = character:FindFirstChild("Humanoid")

moving = false

game.Workspace.Player.Humanoid.Running:Connect(function(speed)

if speed > 0 then

    moving = true

else

    moving = false

    end

end)

if not moving then

local animation = Instance.new("Animation")

animation.AnimationId = "http://www.roblox.com/Asset?ID=0000"

local animationTrack = humanoid:LoadAnimation(animation)

animationTrack:Play()

end

5 comments

0

you should probably set an asset id

0

disable the legs for the animation

0

and just put an animation inside the tool

0

how do you set an asset id?

0

he did set an id "the 0000’s in the script are where i put the id of it"