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
COMMUNITY QUESTION
How do you put animation scripts on Weapons?
2 answers
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
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)
This discussion is preserved as it was. New answers, comments, and votes are closed.
