Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do you put animation scripts on Weapons?

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

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.