SHOW:
|
|
- or go back to the newest paste.
1 | - | --By meh (Rufus14) |
1 | + | --By meh (lafur2) |
2 | mouse = game.Players.LocalPlayer:GetMouse() | |
3 | knife = Instance.new("Part", game.Players.LocalPlayer.Character) | |
4 | knife.Size = Vector3.new(0.5, 1, 2) | |
5 | knife.CanCollide = false | |
6 | knife.Position = Vector3.new(99999,999999,99) | |
7 | weld = Instance.new("Weld", knife) | |
8 | weld.Part0 = game.Players.LocalPlayer.Character["Right Arm"] | |
9 | weld.Part1 = knife | |
10 | mesh = Instance.new("SpecialMesh", knife) | |
11 | - | mesh.MeshId = "http://www.roblox.com/asset/?id=20719463" |
11 | + | mesh.MeshId = "http://www.roblox.com/asset/?id=978439445" |
12 | - | mesh.TextureId = "http://www.roblox.com/asset/?id=20719455" |
12 | + | mesh.TextureId = "http://www.roblox.com/asset/?id=978439467" |
13 | mesh.Scale = Vector3.new(0.5, 0.7, 0.5) | |
14 | weld.C0 = weld.C0 * CFrame.new(0,-1,-0.7) * CFrame.Angles(0,3.25,1) | |
15 | throwing = false | |
16 | print(game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0) | |
17 | sound = Instance.new("Sound", knife) | |
18 | - | sound.SoundId = "rbxassetid://388826051" |
18 | + | sound.SoundId = "rbxassetid://217095283" |
19 | - | sound.Volume = 10 |
19 | + | sound.Volume = 50 |
20 | function knoife(key) | |
21 | key = key:lower() | |
22 | if key == "q" then | |
23 | if not throwing then | |
24 | throwing = true | |
25 | local touched = false | |
26 | game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 7 | |
27 | game.Players.LocalPlayer.Character.Humanoid.JumpPower = 0 | |
28 | for i = 1,10 do | |
29 | wait() | |
30 | game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 * CFrame.Angles(0,0,0.16) | |
31 | end | |
32 | for i = 1,5 do | |
33 | wait() | |
34 | weld.C0 = weld.C0 * CFrame.Angles(0.2,0,0) | |
35 | game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 * CFrame.Angles(0.2,0,0) | |
36 | end | |
37 | wait(0.5) | |
38 | for i = 1,3 do | |
39 | wait() | |
40 | game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 * CFrame.Angles(-0.4,0,-0.32) | |
41 | end | |
42 | knife.Transparency = 1 | |
43 | local knife1 = Instance.new("Part", workspace) | |
44 | knife1.Size = Vector3.new(0.5, 1, 2) | |
45 | knife1.CanCollide = false | |
46 | local mesh1 = Instance.new("SpecialMesh", knife1) | |
47 | mesh1.MeshId = "http://www.roblox.com/asset/?id=20719463" | |
48 | mesh1.TextureId = "http://www.roblox.com/asset/?id=20719455" | |
49 | mesh1.Scale = Vector3.new(0.5, 0.7, 0.5) | |
50 | knife1.Position = knife.Position | |
51 | knife1.Rotation = Vector3.new(game.Players.LocalPlayer.Character.Torso.CFrame.x,game.Players.LocalPlayer.Character.Torso.CFrame.y,game.Players.LocalPlayer.Character.Torso.CFrame.z) | |
52 | game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16 | |
53 | game.Players.LocalPlayer.Character.Humanoid.JumpPower = 50 | |
54 | local velocity = Instance.new("BodyVelocity", knife1) | |
55 | velocity.Velocity = game.Players.LocalPlayer.Character.Torso.CFrame.lookVector * 95 | |
56 | velocity.MaxForce = Vector3.new(math.huge,math.huge,math.huge) | |
57 | knife1.RotVelocity = Vector3.new(0,150,0) | |
58 | for i = 1,2 do | |
59 | wait() | |
60 | game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 * CFrame.Angles(-0.4,0,-0.60) | |
61 | end | |
62 | local function stick() | |
63 | knife1.Anchored = true | |
64 | wait(10) | |
65 | for i = 1,100 do | |
66 | wait() | |
67 | knife1.Transparency = knife1.Transparency + 0.01 | |
68 | end | |
69 | end | |
70 | knife1.Touched:connect(stick) | |
71 | wait(0.5) | |
72 | local function hit(blade) | |
73 | local humanoid = blade.Parent:FindFirstChild("Humanoid") | |
74 | if humanoid then | |
75 | sound:Play() | |
76 | knife1.Transparency = 1 | |
77 | humanoid.Health = 0 | |
78 | end | |
79 | end | |
80 | knife1.Touched:connect(hit) | |
81 | wait(2) | |
82 | game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
83 | for i = 1,20 do | |
84 | wait() | |
85 | game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 * CFrame.Angles(0.05,0,-0.04) | |
86 | end | |
87 | for i = 1,5 do | |
88 | weld.C0 = weld.C0 * CFrame.Angles(-0.2,0,0) | |
89 | end | |
90 | knife1.TouchInterest:destroy() | |
91 | knife.Transparency = 0 | |
92 | for i = 1,20 do | |
93 | wait() | |
94 | game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 * CFrame.Angles(-0.05,0,0.04) | |
95 | end | |
96 | game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
97 | throwing = false | |
98 | end | |
99 | end | |
100 | if key == "e" then | |
101 | if not throwing then | |
102 | throwing = true | |
103 | local damage = Instance.new("Part", workspace) | |
104 | damage.Position = Vector3.new(9999,9999,0) | |
105 | damage.Size = Vector3.new(0.1,0.1,0.1) | |
106 | damage.Transparency = 1 | |
107 | local welding = Instance.new("Weld", knife) | |
108 | welding.Part0 = damage | |
109 | welding.Part1 = knife | |
110 | local function dmg(knf) | |
111 | local hum = knf.Parent:FindFirstChild("Humanoid") | |
112 | if hum then | |
113 | sound:Play() | |
114 | hum.Health = 0 | |
115 | end | |
116 | end | |
117 | damage.Touched:connect(dmg) | |
118 | for i = 1,10 do | |
119 | wait() | |
120 | game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 * CFrame.Angles(0,0,-0.16) | |
121 | end | |
122 | for i = 1,10 do | |
123 | wait() | |
124 | game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 * CFrame.Angles(0,0,0.38) | |
125 | end | |
126 | for i = 1,14 do | |
127 | wait() | |
128 | game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 * CFrame.Angles(0,0,-0.16) | |
129 | end | |
130 | damage:destroy() | |
131 | game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
132 | throwing = false | |
133 | end | |
134 | end | |
135 | end | |
136 | mouse.KeyDown:connect(knoife) |