SHOW:
|
|
- or go back to the newest paste.
1 | Tool = Instance.new("Tool") | |
2 | Tool.Name = "Sword" | |
3 | - | LastAttack = 0 |
3 | + | |
4 | Knife.Name = "Handle" | |
5 | Knife.Parent = Tool | |
6 | Tool.Parent = owner.Character | |
7 | Tool.GripPos = Vector3.new(0,-1.5,0) | |
8 | - | Tool.Grip = CFrame.Angles(0,math.rad(90),math.rad(90)) |
8 | + | |
9 | - | Tool.GripUp = Vector3.new(0, 0, 1.5, 0, 0, -1, -1, 0, 0, 0, -1, 0) |
9 | + | Knife.Size = Vector3.new(2, 4, 4) |
10 | - | Tool.GripPos = Vector3.new(0,0,-1.5) |
10 | + | |
11 | Mesh.MeshId = "http://www.roblox.com/asset/?id=2530871213" | |
12 | - | Knife.Size = Vector3.new(2, 1, 4) |
12 | + | Mesh.TextureId = "http://www.roblox.com/asset/?id=2563598695" |
13 | Mesh.Scale = Vector3.new(3, 3, 3) | |
14 | - | Mesh.MeshId = "http://www.roblox.com/asset/?id=12221720" |
14 | + | Knife.Massless = true |
15 | - | Mesh.TextureId = "http://www.roblox.com/asset/?id=12224218" |
15 | + | |
16 | - | Mesh.Scale = Vector3.new(1, 1, 1) |
16 | + | local STOP = Instance.new("Sound", Knife) |
17 | STOP.SoundId = "rbxassetid://3431749479" | |
18 | - | local stab = Instance.new("Sound", owner.character.Head) |
18 | + | STOP.Volume = 2 |
19 | - | stab.SoundId = "rbxassetid://12222216" |
19 | + | local equipped = Instance.new("Sound", Knife) |
20 | - | stab.Volume = 1 |
20 | + | equipped.SoundId = "rbxassetid://3010057265" |
21 | - | local equipped = Instance.new("Sound", owner.character.Head) |
21 | + | equipped.Volume = 3.5 |
22 | - | equipped.SoundId = "rbxassetid://12222225" |
22 | + | local Lunge = Instance.new("Sound", Knife) |
23 | - | equipped.Volume = 1 |
23 | + | |
24 | - | local Lunge = Instance.new("Sound", owner.character.Head) |
24 | + | |
25 | candamage = false | |
26 | islunging = false | |
27 | owner = nil | |
28 | character = nil | |
29 | playerhum = nil | |
30 | debouncelol = false | |
31 | - | local Tick = game:GetService("RunService").Stepped:wait() |
31 | + | firststart = false |
32 | - | if (Tick - LastAttack) < .5 then |
32 | + | |
33 | - | coroutine.wrap(function() |
33 | + | |
34 | if not debouncelol then | |
35 | debouncelol = true | |
36 | islunging = true | |
37 | - | Tool.Grip = CFrame.Angles(0,math.rad(180),math.rad(90)) |
37 | + | |
38 | - | Tool.GripPos = Vector3.new(0,0,-1.75) |
38 | + | |
39 | Tool.Grip = CFrame.Angles(math.rad(90),0,0) | |
40 | Tool.GripPos = Vector3.new(0,-2.75,0) | |
41 | local Anim = Instance.new("StringValue") | |
42 | Anim.Name = "toolanim" | |
43 | Anim.Value = "Lunge" | |
44 | Anim.Parent = Tool | |
45 | wait(0.25) | |
46 | - | Tool.Grip = CFrame.Angles(0,math.rad(90),math.rad(90)) |
46 | + | |
47 | - | Tool.GripPos = Vector3.new(0,0,-1.5) |
47 | + | |
48 | - | end)() |
48 | + | Tool.Grip = CFrame.Angles(0,0,0) |
49 | - | else |
49 | + | Tool.GripPos = Vector3.new(0,-1.5,0) |
50 | - | coroutine.wrap(function() |
50 | + | wait(1) |
51 | - | stab:Stop() |
51 | + | debouncelol = false |
52 | - | stab:Play() |
52 | + | |
53 | - | local Anim = Instance.new("StringValue") |
53 | + | |
54 | - | Anim.Name = "toolanim" |
54 | + | local billboard = Instance.new("BillboardGui", Knife) |
55 | - | Anim.Value = "Slash" |
55 | + | billboard.Adornee = Knife |
56 | - | Anim.Parent = Tool |
56 | + | billboard.StudsOffset = Vector3.new(-1, 4.5, 0) |
57 | - | candamage = true |
57 | + | billboard.Size = UDim2.new(2,0,1,0) |
58 | billboard.Name = "healthbarlol" | |
59 | - | candamage = false |
59 | + | local text = Instance.new("TextBox", billboard) |
60 | - | end)() |
60 | + | text.BackgroundTransparency = 1 |
61 | - | end |
61 | + | text.TextTransparency = 0 |
62 | - | LastAttack = Tick |
62 | + | text.TextSize = 25 |
63 | text.Size = billboard.Size | |
64 | text.Font = "Arcade" | |
65 | text.Text = "Cooldown = None" | |
66 | function cooldown() | |
67 | for count = 5, 0, -1 do | |
68 | wait(1) | |
69 | text.Text = "Cooldown = "..count | |
70 | if count == 0 then | |
71 | text.Text = "Cooldown = None" | |
72 | - | local function damagePlayer(otherPart) |
72 | + | else |
73 | - | if candamage and not islunging then |
73 | + | |
74 | - | local partParent = otherPart.Parent |
74 | + | |
75 | - | local humanoid = partParent:FindFirstChildWhichIsA("Humanoid") |
75 | + | |
76 | - | if humanoid ~= "myhum" and humanoid then |
76 | + | |
77 | - | if not isTouched then |
77 | + | owner = game:GetService("Players"):GetPlayerFromCharacter(Tool.Parent) |
78 | - | isTouched = true |
78 | + | character = owner.Character |
79 | - | if humanoid.Health ~= 0 then |
79 | + | playerhum = character:findFirstChildOfClass("Humanoid") |
80 | - | humanoid.Health = humanoid.Health - 10 |
80 | + | if not firststart then |
81 | - | wait(0.40) |
81 | + | firststart = true |
82 | - | isTouched = false |
82 | + | owner.Character.HumanoidRootPart.Anchored = true |
83 | - | end |
83 | + | |
84 | - | end |
84 | + | local ring = Instance.new("Part", character) |
85 | ring.Size = Vector3.new(5,5,4) | |
86 | ring.CanCollide = false | |
87 | ring.Anchored = true | |
88 | ring.CFrame = owner.Character.Torso.CFrame * CFrame.Angles(math.rad(90),0,0) | |
89 | - | local function lungelol(otherPart3) |
89 | + | ring.Material = Enum.Material.Neon |
90 | local mes = Instance.new("SpecialMesh", ring) | |
91 | - | local partParent3 = otherPart3.Parent |
91 | + | mes.MeshId = "rbxassetid://3270017" |
92 | - | local humanoid = partParent3:FindFirstChildWhichIsA("Humanoid") |
92 | + | spawnpart = Instance.new("Part", owner.Character) |
93 | - | if humanoid ~= "myhum" and humanoid then |
93 | + | spawnpart.Size = Vector3.new(0.1,0.1,0.1) |
94 | - | if humanoid.Health ~= 0 then |
94 | + | spawnpart.Anchored = true |
95 | - | humanoid.Health = humanoid.Health - 20 |
95 | + | spawnpart.Shape = Enum.PartType.Ball |
96 | spawnpart.CanCollide = false | |
97 | - | end |
97 | + | spawnpart.Material = Enum.Material.Neon |
98 | spawnpart.CFrame = owner.Character.Torso.CFrame | |
99 | spawnpart2 = Instance.new("Part", owner.Character) | |
100 | spawnpart2.Size = Vector3.new(0.1,0.1,0.1) | |
101 | - | local function tapped(otherPart2) |
101 | + | spawnpart2.Anchored = true |
102 | - | if not islunging and not candamage then |
102 | + | spawnpart2.Shape = Enum.PartType.Ball |
103 | - | local partParent2 = otherPart2.Parent |
103 | + | spawnpart2.CanCollide = false |
104 | - | local humanoid = partParent2:FindFirstChildWhichIsA("Humanoid") |
104 | + | spawnpart2.Material = Enum.Material.Neon |
105 | - | if humanoid ~= "myhum" and humanoid then |
105 | + | spawnpart2.CFrame = owner.Character.Torso.CFrame |
106 | - | if not isTouched then |
106 | + | Knife.Material = Enum.Material.Neon |
107 | - | isTouched = true |
107 | + | local tweenService = game:GetService("TweenService") |
108 | - | if humanoid.Health ~= 0 then |
108 | + | Knife.Transparency = 1 |
109 | - | humanoid.Health = humanoid.Health - 5 |
109 | + | Mesh.Scale = Vector3.new(0.05,0.05,0.05) |
110 | - | wait(0.1) |
110 | + | local timeToFade = 3 |
111 | - | isTouched = false |
111 | + | local object = spawnpart |
112 | local tweenInfo = TweenInfo.new(timeToFade) | |
113 | - | end |
113 | + | local goal = {} |
114 | goal.Transparency = 1 | |
115 | ||
116 | local tween = tweenService:Create(object, tweenInfo, goal) | |
117 | ||
118 | - | Knife.Touched:Connect(lungelol) |
118 | + | local timeToFade2 = 3 |
119 | - | Knife.Touched:Connect(damagePlayer) |
119 | + | local object2 = spawnpart |
120 | - | Knife.Touched:Connect(tapped) |
120 | + | local tweenInfo2 = TweenInfo.new(timeToFade2) |
121 | local goal2 = {} | |
122 | goal2.Size = Vector3.new(50,50,50) | |
123 | ||
124 | local tween2 = tweenService:Create(object2, tweenInfo2, goal2) | |
125 | ||
126 | local timeToFade3 = 9 | |
127 | local object3 = spawnpart2 | |
128 | local tweenInfo3 = TweenInfo.new(timeToFade3) | |
129 | local goal3 = {} | |
130 | goal3.Transparency = 1 | |
131 | ||
132 | local tween3 = tweenService:Create(object3, tweenInfo3, goal3) | |
133 | ||
134 | local timeToFade4 = 9 | |
135 | local object4 = spawnpart2 | |
136 | local tweenInfo4 = TweenInfo.new(timeToFade4) | |
137 | local goal4 = {} | |
138 | goal4.Size = Vector3.new(0.1,0.1,0.1) | |
139 | ||
140 | local tween4 = tweenService:Create(object4, tweenInfo4, goal4) | |
141 | ||
142 | local timeToFade5 = 6 | |
143 | local object5 = spawnpart2 | |
144 | local tweenInfo5 = TweenInfo.new(timeToFade5) | |
145 | local goal5 = {} | |
146 | goal5.Size = Vector3.new(65,65,65) | |
147 | ||
148 | local tween5 = tweenService:Create(object5, tweenInfo5, goal5) | |
149 | ||
150 | local timeToFade6 = 3 | |
151 | local object6 = Knife | |
152 | local tweenInfo6 = TweenInfo.new(timeToFade6) | |
153 | local goal6 = {} | |
154 | goal6.Transparency = 0 | |
155 | ||
156 | local tween6 = tweenService:Create(object6, tweenInfo6, goal6) | |
157 | local timeToFade7 = 3 | |
158 | local object7 = Mesh | |
159 | local tweenInfo7 = TweenInfo.new(timeToFade2) | |
160 | local goal7 = {} | |
161 | goal7.Scale = Vector3.new(3,3,3) | |
162 | ||
163 | local tween7 = tweenService:Create(object7, tweenInfo7, goal7) | |
164 | tween:Play() | |
165 | tween2:Play() | |
166 | tween5:Play() | |
167 | coroutine.wrap(function() | |
168 | for i = 1,100 do | |
169 | mes.Scale = mes.Scale + Vector3.new(2,2,0.5) | |
170 | ring.Transparency = ring.Transparency + 0.01 | |
171 | game:GetService("RunService").Stepped:wait() | |
172 | end | |
173 | ring:destroy() | |
174 | end)() | |
175 | wait(3) | |
176 | tween:Destroy() | |
177 | tween2:Destroy() | |
178 | spawnpart:Destroy() | |
179 | wait(3) | |
180 | tween5:Destroy() | |
181 | tween3:Play() | |
182 | tween4:Play() | |
183 | wait(9) | |
184 | tween3:Destroy() | |
185 | tween4:Destroy() | |
186 | spawnpart2:Destroy() | |
187 | wait(1.5) | |
188 | tween6:Play() | |
189 | tween7:Play() | |
190 | owner.Character.HumanoidRootPart.Anchored = false | |
191 | part1:Destroy() | |
192 | wait(3) | |
193 | Knife.Material = Enum.Material.SmoothPlastic | |
194 | wait(16) | |
195 | equipped:Stop() | |
196 | else | |
197 | end | |
198 | end) | |
199 | ||
200 | part1 = Instance.new("Part", owner.Character.HumanoidRootPart) | |
201 | part1.Anchored = true | |
202 | part1.Position = owner.Character.HumanoidRootPart.Position | |
203 | part1.CanCollide = false | |
204 | part1.Size = Vector3.new(72.5,72.5,72.5) | |
205 | part1.Transparency = 1 | |
206 | part1.Shape = Enum.PartType.Ball | |
207 | function yeet(v) | |
208 | if v.Anchored == false then | |
209 | if v.Parent ~= owner.Character:GetDescendants() then | |
210 | local velocity = Instance.new("BodyVelocity", v) | |
211 | velocity.Velocity = CFrame.new(v.Position, part1.Position).lookVector * -100 | |
212 | velocity.MaxForce = Vector3.new(math.huge,math.huge,math.huge) | |
213 | wait(0.5) | |
214 | velocity:Destroy() | |
215 | end | |
216 | end | |
217 | end | |
218 | part1.Touched:Connect(yeet) | |
219 | local isTouched = false | |
220 | function lungelol(otherPart3) | |
221 | pcall(function() | |
222 | if islunging and not candamage then | |
223 | candamage = true | |
224 | local partParent3 = game:GetService("Players"):GetPlayerFromCharacter(otherPart3.Parent) or game:GetService("Players"):GetPlayerFromCharacter(otherPart3.Parent.Parent) or game:GetService("Players"):GetPlayerFromCharacter(otherPart3) | |
225 | STOP:Play() | |
226 | owner.Character.Humanoid.WalkSpeed = 32 | |
227 | local oldspeed = partParent3.Character.Humanoid.WalkSpeed | |
228 | partParent3.Character.Humanoid.WalkSpeed = 4 | |
229 | partParent3.Character.Humanoid.Health -= 2 | |
230 | local dead = Instance.new("ScreenGui") | |
231 | local ringing = Instance.new("Sound", dead) | |
232 | local Frame = Instance.new("Frame") | |
233 | dead.Name = "dead" | |
234 | dead.Parent = partParent3:findFirstChildOfClass("PlayerGui") | |
235 | ||
236 | Frame.Parent = dead | |
237 | Frame.BackgroundColor3 = Color3.new(255,255,255) | |
238 | Frame.Size = UDim2.new(1, 0, 1, 36) | |
239 | Frame.BackgroundTransparency = 0 | |
240 | Frame.AnchorPoint = Vector2.new(0.5, 0.5) | |
241 | Frame.Position = UDim2.new(0.5, 0, 0.5, 0) | |
242 | ringing.SoundId = "rbxassetid://152736435" | |
243 | ringing.Volume = 2 | |
244 | ringing.Looped = true | |
245 | ringing:Play() | |
246 | local tweenService = game:GetService("TweenService") | |
247 | local timeToFade = 7.5 | |
248 | local object = Frame | |
249 | local tweenInfo = TweenInfo.new(timeToFade) | |
250 | local goal = {} | |
251 | goal.BackgroundTransparency = 1 | |
252 | ||
253 | local tween = tweenService:Create(object, tweenInfo, goal) | |
254 | tween:Play() | |
255 | coroutine.wrap(function() | |
256 | for i = 1,350 do | |
257 | ringing.Volume = ringing.Volume - 0.005 | |
258 | wait() | |
259 | end | |
260 | dead:destroy() | |
261 | end)() | |
262 | cooldown() | |
263 | owner.Character.Humanoid.WalkSpeed = 16 | |
264 | partParent3.Character.Humanoid.WalkSpeed = oldspeed | |
265 | candamage = false | |
266 | end | |
267 | end) | |
268 | end | |
269 | Knife.Touched:Connect(lungelol) |