Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local plr = game:GetService("Players").LocalPlayer
- local char = plr.Character or plr.CharacterAdded:Wait()
- local h = char:WaitForChild("Humanoid")
- local anim = h:LoadAnimation(script.Parent:WaitForChild("Animation"))
- local tool = script.Parent
- tool.Equipped:Connect(function()
- anim:Play()
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement