Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do you put animation scripts on Weapons?

Asked by 8 years ago

while i was editing i wanted to add some animation scripts but i dont know how so if ya know what it is please answer this

2 answers

Log in to vote
1
Answered by 8 years ago

Here's an article posted on the ROBLOX Wiki that might suite your needs. It contains some great information.

Animation Wiki: http://wiki.roblox.com/index.php?title=Animations

Ad
Log in to vote
0
Answered by 8 years ago

Try this out all u need to do is edit the variable Id

local tool = script.Parent

tool.Activated:connect(function()
local id = "animationid"
    local humanoid = tool.Parent:FindFirstChild('Humanoid')
    local ani = Instance.new("Animation")
    ani.AnimationId = id

    if humanoid then
        local Lp = humanoid:LoadAnimation(fd)
            if Lp then
                Lp:Play()
            end
            end 
end)    

Answer this question