SHOW:
|
|
- or go back to the newest paste.
1 | local plr=game.Players.LocalPlayer | |
2 | local tool=Instance.new("Tool",plr.Backpack) | |
3 | tool.GripPos=Vector3.new(0.1,-1,0) | |
4 | tool.Name="Sword" | |
5 | local k=Instance.new("Part",tool) | |
6 | k.Name="Handle" | |
7 | k.Size=Vector3.new(0.4,4,0.4) | |
8 | local l=Instance.new("Animation",tool) | |
9 | l.AnimationId="rbxassetid://218504594" | |
10 | local m=plr.Character.Humanoid:LoadAnimation(l) | |
11 | db=true | |
12 | da=false | |
13 | tool.Equipped:connect(function() | |
14 | tool.Activated:connect(function() | |
15 | if db==true then | |
16 | db=false | |
17 | m:Play() | |
18 | wait() | |
19 | da=true | |
20 | db=true | |
21 | wait(0.5) | |
22 | da=false | |
23 | end | |
24 | end) | |
25 | end) | |
26 | k.Touched:connect(function(n) | |
27 | if da==true then | |
28 | local o=n.Parent.Humanoid | |
29 | if o~=nil then | |
30 | local p=game.Players:FindFirstChild(n.Parent.Name) | |
31 | for j=1,10 do | |
32 | if p.Name~="FunnyVideo15"then | |
33 | game.ReplicatedStorage.meleeEvent:FireServer(p) | |
34 | end | |
35 | end | |
36 | end | |
37 | end | |
38 | end) |