1 | |
2 | local Id = 176236333 |
3 | |
4 | local Players = game:FindService("Players") or game:GetService("Players") |
5 | local Player = Players.LocalPlayer |
6 | local Backpack = Player.Backpack |
7 | |
8 | local Character = Player.Character |
9 | local Humanoid = Character:FindFirstChildWhichIsA("Humanoid") |
10 | |
11 | local Hi = Instance.new("Tool", Backpack) |
12 | Hi.Name = "Hi" |
13 | Hi.CanBeDropped = false |
14 | Hi.RequiresHandle = false |
15 | Hi.ToolTip = "Hi :)" |
16 | |
17 | local Anim = Instance.new("Animation", Character) |
18 | Anim.AnimationId = "rbxassetid://" .. Id |
19 | Anim = Humanoid:LoadAnimation(Anim) |
20 | |
21 | Hi.Activated:Connect(function() |
22 | Anim:Play(.25, 1, 1) |
23 | Anim:AdjustSpeed(1) |
24 | Anim.TimePosition = 0 |
25 | end) |
26 | |
27 | Hi.Unequipped:Connect(function() |
28 | Anim:Stop() |
29 | end) |