SHOW:
|
|
- or go back to the newest paste.
1 | plr = owner | |
2 | char = plr.Character | |
3 | hum = char.Humanoid | |
4 | hp = hum.Health | |
5 | tors = char.Torso | |
6 | ra = char["Right Arm"] | |
7 | la = char["Left Arm"] | |
8 | rs = tors["Right Shoulder"] | |
9 | ls = tors["Left Shoulder"] | |
10 | rsnor = rs.C0 | |
11 | rsnor2 = rs.C1 | |
12 | lsnor = ls.C0 | |
13 | lsnor2 = ls.C1 | |
14 | ||
15 | - | sounds = true |
15 | + | |
16 | SKT = "rbxassetid://448822109" | |
17 | SNM = "rbxassetid://442476524" | |
18 | SNT = "rbxassetid://442476528" | |
19 | ||
20 | function ragdoll(model, ragdolltime) | |
21 | - | EWM = "rbxassetid://431000043" |
21 | + | |
22 | - | EWT = "http://www.roblox.com/asset/?id=430627740" |
22 | + | |
23 | if v:IsA("Motor") and not model:FindFirstChild("ragged") or v:IsA("Motor6D") and not model:FindFirstChild("ragged") then | |
24 | if v.Name == "Right Shoulder" then | |
25 | old = v.Parent | |
26 | local glue = Instance.new("Glue",old) | |
27 | - | if v:IsA("Motor") and not model:FindFirstChild("ragged") or v:IsA("Motor6D") then |
27 | + | |
28 | glue.Part1 = v.Part1 | |
29 | glue.C0 = v.C0 | |
30 | glue.C1 = v.C1 | |
31 | v.Parent = nil | |
32 | game.Debris:AddItem(glue, ragdolltime) | |
33 | if model:FindFirstChild("Right Arm") then | |
34 | local ack = model["Right Arm"] | |
35 | local hitbox = ack:Clone() | |
36 | hitbox.Parent = ack | |
37 | hitbox.Size = ack.Size | |
38 | hitbox.Transparency = 1 | |
39 | hitbox.CanCollide = true | |
40 | hitbox.Anchored = false | |
41 | ezweld(hitbox, hitbox, ack, CFrame.new()) | |
42 | game.Debris:AddItem(hitbox, ragdolltime) | |
43 | end | |
44 | coroutine.resume(coroutine.create(function() | |
45 | wait(ragdolltime) | |
46 | v.Parent = old | |
47 | end)) | |
48 | end | |
49 | if v.Name == "Left Shoulder" then | |
50 | old = v.Parent | |
51 | local glue = Instance.new("Glue",old) | |
52 | glue.Part0 = v.Part0 | |
53 | glue.Part1 = v.Part1 | |
54 | glue.C0 = v.C0 | |
55 | glue.C1 = v.C1 | |
56 | v.Parent = nil | |
57 | game.Debris:AddItem(glue, ragdolltime) | |
58 | if model:FindFirstChild("Left Arm") then | |
59 | local ack = model["Left Arm"] | |
60 | local hitbox = ack:Clone() | |
61 | hitbox.Parent = ack | |
62 | hitbox.Size = ack.Size | |
63 | hitbox.Transparency = 1 | |
64 | hitbox.CanCollide = true | |
65 | hitbox.Anchored = false | |
66 | ezweld(hitbox, hitbox, ack, CFrame.new()) | |
67 | game.Debris:AddItem(hitbox, ragdolltime) | |
68 | end | |
69 | coroutine.resume(coroutine.create(function() | |
70 | wait(ragdolltime) | |
71 | v.Parent = old | |
72 | end)) | |
73 | end | |
74 | if v.Name == "Right Hip" then | |
75 | old = v.Parent | |
76 | local glue = Instance.new("Glue",old) | |
77 | glue.Part0 = v.Part0 | |
78 | glue.Part1 = v.Part1 | |
79 | glue.C0 = v.C0 | |
80 | glue.C1 = v.C1 | |
81 | v.Parent = nil | |
82 | game.Debris:AddItem(glue, ragdolltime) | |
83 | if model:FindFirstChild("Right Leg") then | |
84 | local ack = model["Right Leg"] | |
85 | local hitbox = ack:Clone() | |
86 | hitbox.Parent = ack | |
87 | hitbox.Size = ack.Size | |
88 | hitbox.Transparency = 1 | |
89 | hitbox.CanCollide = true | |
90 | hitbox.Anchored = false | |
91 | ezweld(hitbox, hitbox, ack, CFrame.new()) | |
92 | game.Debris:AddItem(hitbox, ragdolltime) | |
93 | end | |
94 | coroutine.resume(coroutine.create(function() | |
95 | wait(ragdolltime) | |
96 | v.Parent = old | |
97 | end)) | |
98 | end | |
99 | if v.Name == "Left Hip" then | |
100 | old = v.Parent | |
101 | local glue = Instance.new("Glue",old) | |
102 | glue.Part0 = v.Part0 | |
103 | glue.Part1 = v.Part1 | |
104 | glue.C0 = v.C0 | |
105 | glue.C1 = v.C1 | |
106 | v.Parent = nil | |
107 | game.Debris:AddItem(glue, ragdolltime) | |
108 | if model:FindFirstChild("Left Leg") then | |
109 | local ack = model["Left Leg"] | |
110 | local hitbox = ack:Clone() | |
111 | hitbox.Parent = ack | |
112 | hitbox.Size = ack.Size | |
113 | hitbox.Transparency = 1 | |
114 | hitbox.CanCollide = true | |
115 | hitbox.Anchored = false | |
116 | ezweld(hitbox, hitbox, ack, CFrame.new()) | |
117 | game.Debris:AddItem(hitbox, ragdolltime) | |
118 | end | |
119 | coroutine.resume(coroutine.create(function() | |
120 | wait(ragdolltime) | |
121 | v.Parent = old | |
122 | end)) | |
123 | end | |
124 | end | |
125 | if v:IsA("Humanoid") and not model:FindFirstChild("ragged") then | |
126 | v.PlatformStand = true | |
127 | coroutine.resume(coroutine.create(function() | |
128 | wait(ragdolltime) | |
129 | v.PlatformStand = false | |
130 | end)) | |
131 | end | |
132 | if v:IsA("Part") and v.Name == "Torso" and not model:FindFirstChild("ragged") then | |
133 | local a = 120 | |
134 | local bv = Instance.new("BodyVelocity",v) | |
135 | bv.Velocity = Vector3.new(math.random(-a, a), math.random(-a, a), math.random(-a, a)) | |
136 | --bv.Velocity = v.CFrame.lookVector * 400 | |
137 | - | local a = 220 |
137 | + | |
138 | end | |
139 | end | |
140 | local ragged = Instance.new("NumberValue",model) | |
141 | ragged.Name = "ragged" | |
142 | game.Debris:AddItem(ragged, ragdolltime) | |
143 | end | |
144 | ||
145 | function checkifback(nTorso) | |
146 | local offSet=nTorso.CFrame:toObjectSpace(tors.CFrame) | |
147 | if offSet.z>0 then | |
148 | if nTorso.Parent:FindFirstChildOfClass("Humanoid") then | |
149 | local hum = nTorso.Parent:FindFirstChildOfClass("Humanoid") | |
150 | hum.BreakJointsOnDeath = false | |
151 | Swait() | |
152 | end | |
153 | if nTorso.Parent.ClassName == "Model" then | |
154 | nTorso.Parent:BreakJoints() | |
155 | end | |
156 | ragdoll(nTorso.Parent, 999999999999999999999999999999999) | |
157 | local ch = Instance.new("Sound",tors) ch.SoundId = "rbxassetid://296102734" ch.Volume = 3 ch:Play() | |
158 | end | |
159 | end | |
160 | ||
161 | - | local ch = Instance.new("Sound",tors) ch.SoundId = "rbxassetid://296102734" ch.Volume = 10 ch:Play() |
161 | + | |
162 | if nTorso.Parent:FindFirstChildOfClass("Humanoid") then | |
163 | local hum = nTorso.Parent:FindFirstChildOfClass("Humanoid") | |
164 | hum.BreakJointsOnDeath = false | |
165 | Swait() | |
166 | end | |
167 | if nTorso.Parent.ClassName == "Model" then | |
168 | nTorso.Parent:BreakJoints() | |
169 | end | |
170 | ragdoll(nTorso.Parent, 999999999999999999999999999999999) | |
171 | local ch = Instance.new("Sound",tors) ch.SoundId = "rbxassetid://296102734" ch.Volume = 3 ch:Play() | |
172 | end | |
173 | ||
174 | ezweld = function(p, a, b, cf) | |
175 | - | local ch = Instance.new("Sound",tors) ch.SoundId = "rbxassetid://296102734" ch.Volume = 10 ch:Play() |
175 | + | |
176 | weld.Part0 = a | |
177 | weld.Part1 = b | |
178 | - | function findNearestTorso(pos) |
178 | + | |
179 | - | local list = game.Workspace:children() |
179 | + | |
180 | - | local torso = nil |
180 | + | |
181 | - | local dist = 1000000000 |
181 | + | |
182 | - | local temp = nil |
182 | + | |
183 | - | local human = nil |
183 | + | |
184 | - | local temp2 = nil |
184 | + | |
185 | - | for x = 1, #list do |
185 | + | |
186 | - | temp2 = list[x] |
186 | + | |
187 | - | if (temp2.className == "Model") and (temp2 ~= char) then |
187 | + | |
188 | - | temp = temp2:findFirstChild("Torso") or temp2:findFirstChild("UpperTorso") |
188 | + | |
189 | - | human = temp2:findFirstChild("Humanoid") |
189 | + | |
190 | - | if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then |
190 | + | |
191 | - | if (temp.Position - pos).magnitude < dist then |
191 | + | |
192 | - | torso = temp |
192 | + | |
193 | - | dist = (temp.Position - pos).magnitude |
193 | + | |
194 | ||
195 | local Client = NLS([[ | |
196 | ||
197 | local char = script.Parent | |
198 | - | return torso |
198 | + | |
199 | ||
200 | local MouseLoc = char:WaitForChild("MouseLoc",10) | |
201 | ||
202 | function MouseLoc.OnClientInvoke() | |
203 | return game:GetService("Players").LocalPlayer:GetMouse().Hit.p | |
204 | end | |
205 | ||
206 | ]],char) | |
207 | ||
208 | local Target = Instance.new("RemoteFunction",char) | |
209 | Target.Name = "Target" | |
210 | ||
211 | local Client2 = NLS([[ | |
212 | ||
213 | local char = script.Parent | |
214 | script.Name = "Client2" | |
215 | ||
216 | local MouseLoc = char:WaitForChild("Target",10) | |
217 | ||
218 | function MouseLoc.OnClientInvoke() | |
219 | return game:GetService("Players").LocalPlayer:GetMouse().Target | |
220 | end | |
221 | ||
222 | ]],char) | |
223 | ||
224 | local spyk = Instance.new("Tool",plr.Backpack) | |
225 | spyk.Name = "spy's knife" | |
226 | spyk.GripForward = Vector3.new(-0, -0.094, 0.996) | |
227 | spyk.GripPos = Vector3.new(-0.139, -0.462, -0.398) | |
228 | spyk.GripRight = Vector3.new(-1, 0, -0) | |
229 | spyk.GripUp = Vector3.new(0, 0.996, 0.094) | |
230 | local khandle = Instance.new("Part",spyk) | |
231 | khandle.Name = "Handle" | |
232 | khandle.Size = Vector3.new(0.25, 2.75, 1.75) | |
233 | khandle.CanCollide = false | |
234 | local kmesh = Instance.new("SpecialMesh",khandle) | |
235 | kmesh.MeshId = SKM | |
236 | kmesh.TextureId = SKT | |
237 | kmesh.Scale = Vector3.new(0.0025, 0.0025, 0.0025) | |
238 | local kraw = ezweld(nil, tors, ra, rsnor * CFrame.Angles(0, 0, 0)) | |
239 | kraw.C1 = rsnor2 | |
240 | ||
241 | if char:FindFirstChild("Animate") then | |
242 | local ranim = char.Animate | |
243 | if ranim:FindFirstChild("toolnone") then | |
244 | ranim.toolnone:remove() | |
245 | end | |
246 | end | |
247 | ||
248 | spyk.Equipped:connect(function() | |
249 | kraw.Parent = char | |
250 | for i = 1,9 do | |
251 | - | plr.Chatted:connect(function(msg) |
251 | + | |
252 | - | if msg == "/sounds" then |
252 | + | |
253 | - | if sounds then |
253 | + | |
254 | - | sounds = false |
254 | + | |
255 | - | else |
255 | + | |
256 | - | sounds = true |
256 | + | |
257 | kanim = 0 | |
258 | kraw.Parent = char | |
259 | for i = 1,9 do | |
260 | Swait() | |
261 | kraw.C0 = kraw.C0:Lerp(rsnor, 0.3) | |
262 | end | |
263 | kraw.Parent = nil | |
264 | end) | |
265 | ||
266 | local sniper = Instance.new("Tool",plr.Backpack) | |
267 | sniper.Name = "sniper's sniper" | |
268 | sniper.GripForward = Vector3.new(0.996, 0.025, 0.91) | |
269 | sniper.GripPos = Vector3.new(-0.189, -0.379, -0.18) | |
270 | sniper.GripRight = Vector3.new(-0.09, -0.018, 0.996) | |
271 | sniper.GripUp = Vector3.new(-0.026, 1, 0.016) | |
272 | local shandle = Instance.new("Part",sniper) | |
273 | shandle.Name = "Handle" | |
274 | shandle.Size = Vector3.new(0.25, 2.75, 1.75) | |
275 | shandle.CanCollide = false | |
276 | local smesh = Instance.new("SpecialMesh",shandle) | |
277 | smesh.MeshId = SNM | |
278 | smesh.TextureId = SNT | |
279 | smesh.Scale = Vector3.new(5, 5, 5) | |
280 | smesh.Offset = Vector3.new(0.25, 0.25, 0) | |
281 | local sraw = ezweld(nil, tors, ra, rsnor * CFrame.Angles(0, 0, 0)) | |
282 | sraw.C1 = rsnor2 | |
283 | local slaw = ezweld(nil, tors, la, lsnor * CFrame.Angles(0, 0, 0)) | |
284 | slaw.C1 = lsnor2 | |
285 | ||
286 | sniper.Equipped:connect(function() | |
287 | sraw.Parent = char | |
288 | slaw.Parent = char | |
289 | for i = 1,9 do | |
290 | Swait() | |
291 | sraw.C0 = sraw.C0:Lerp(rsnor * CFrame.Angles(0, 0, math.rad(90)), 0.3) | |
292 | slaw.C0 = slaw.C0:Lerp(lsnor * CFrame.new(0, 0, -0.5) * CFrame.Angles(0, math.rad(-65), math.rad(-90)), 0.3) | |
293 | end | |
294 | end) | |
295 | ||
296 | sniper.Unequipped:connect(function() | |
297 | sraw.Parent = char | |
298 | slaw.Parent = char | |
299 | for i = 1,9 do | |
300 | Swait() | |
301 | sraw.C0 = sraw.C0:Lerp(rsnor, 0.3) | |
302 | slaw.C0 = slaw.C0:Lerp(lsnor, 0.3) | |
303 | end | |
304 | slaw.Parent = nil | |
305 | sraw.Parent = nil | |
306 | end) | |
307 | ||
308 | function AttachmentCFrame(A) | |
309 | return A.Parent.CFrame*CFrame.new(A.Position) | |
310 | end | |
311 | ||
312 | local snipen = Instance.new("Attachment",shandle) | |
313 | snipen.Position = Vector3.new(2.5, -0.5, 0) | |
314 | snipen.Name = "Nuzzle" | |
315 | ||
316 | sniper.Activated:connect(function() | |
317 | local targetPos = MouseLoc:InvokeClient(plr) | |
318 | local DIST = (shandle.Position - targetPos).Magnitude | |
319 | local bullet = Instance.new("Part",hum) | |
320 | bullet.Anchored = true | |
321 | bullet.CanCollide = false | |
322 | bullet.BrickColor = BrickColor.new("Bright yellow") | |
323 | bullet.Transparency = 0.25 | |
324 | bullet.Material = "Neon" | |
325 | bullet.CFrame = CFrame.new(AttachmentCFrame(shandle.Nuzzle).p, targetPos) * CFrame.new(0, 0, -DIST/2) | |
326 | bullet.Size = Vector3.new(0.1, 0.1, DIST) | |
327 | local target = Target:InvokeClient(plr).Parent | |
328 | if target and target ~= workspace and target ~= char then | |
329 | - | slaw.C0 = slaw.C0:Lerp(lsnor * CFrame.new(0, 0, -1) * CFrame.Angles(0, math.rad(-65), math.rad(-90)), 0.3) |
329 | + | |
330 | if v:IsA("Humanoid") then | |
331 | v.Health = v.Health - 35 | |
332 | ragdoll(target, 3) | |
333 | end | |
334 | end | |
335 | if Target:InvokeClient(plr).Name == "Head" then | |
336 | critkill(Target:InvokeClient(plr)) | |
337 | end | |
338 | end | |
339 | for i = 1,5 do | |
340 | Swait() | |
341 | bullet.CFrame = CFrame.new(AttachmentCFrame(shandle.Nuzzle).p, targetPos) * CFrame.new(0, 0, -DIST/2) | |
342 | bullet.Size = Vector3.new(0.1, 0.1, DIST) | |
343 | bullet.Transparency = bullet.Transparency + 0.2 | |
344 | sraw.C0 = sraw.C0:Lerp(rsnor * CFrame.Angles(0, 0, math.rad(120)), 0.3) | |
345 | - | local wrench = Instance.new("Tool",plr.Backpack) |
345 | + | |
346 | - | wrench.Name = "engineer's wrench" |
346 | + | |
347 | - | wrench.GripForward = Vector3.new(0, 0, 1) |
347 | + | |
348 | - | wrench.GripPos = Vector3.new(0, -0.5, -0.084) |
348 | + | |
349 | - | wrench.GripRight = Vector3.new(-1, 0, 0) |
349 | + | |
350 | - | wrench.GripUp = Vector3.new(0, 1, 0) |
350 | + | |
351 | - | local whandle = Instance.new("Part",wrench) |
351 | + | |
352 | - | whandle.Name = "Handle" |
352 | + | |
353 | - | whandle.Size = Vector3.new(0.25, 2.75, 1.75) |
353 | + | slaw.C0 = slaw.C0:Lerp(lsnor * CFrame.new(0, 0, -0.5) * CFrame.Angles(0, math.rad(-65), math.rad(-90)), 0.3) |
354 | - | whandle.CanCollide = false |
354 | + | |
355 | - | local wmesh = Instance.new("SpecialMesh",whandle) |
355 | + | |
356 | - | wmesh.MeshId = EWM |
356 | + | |
357 | - | wmesh.TextureId = EWT |
357 | + | |
358 | - | wmesh.Scale = Vector3.new(2, 2, 2) |
358 | + | |
359 | - | wmesh.Offset = Vector3.new(0.25, 0.25, 0) |
359 | + | |
360 | - | local wraw = ezweld(nil, tors, ra, rsnor * CFrame.Angles(0, 0, 0)) |
360 | + | |
361 | - | wraw.C1 = rsnor2 |
361 | + | |
362 | hed = char.Head | |
363 | - | wrench.Equipped:connect(function() |
363 | + | |
364 | - | wraw.Parent = char |
364 | + | |
365 | if cloakedyes then | |
366 | cloakedyes = false | |
367 | - | wraw.C0 = wraw.C0:Lerp(rsnor * CFrame.Angles(0, 0, math.rad(67.5)), 0.3) |
367 | + | |
368 | local cloaks = Instance.new("Sound",hed) cloaks.SoundId = "rbxassetid://195575792" cloaks.Volume = 2.5 cloaks:Play() | |
369 | game.Debris:AddItem(cloaks,1.5) | |
370 | for i = 1,15 do | |
371 | - | wrench.Unequipped:connect(function() |
371 | + | |
372 | - | wraw.Parent = char |
372 | + | |
373 | if v:IsA("Part") then | |
374 | v.Transparency = v.Transparency - 0.1 | |
375 | - | wraw.C0 = wraw.C0:Lerp(rsnor, 0.3) |
375 | + | |
376 | end | |
377 | - | wraw.Parent = nil |
377 | + | |
378 | for i,v in pairs (SpareHats:children()) do | |
379 | if v:IsA("Hat") or v:IsA("Accessory") then | |
380 | - | wrench.Activated:connect(function() |
380 | + | |
381 | - | local smodel = Instance.new("Model",script) |
381 | + | |
382 | - | smodel.Name = plr.Name .."'s Sentry" |
382 | + | |
383 | - | local health = Instance.new("Humanoid",smodel) |
383 | + | |
384 | - | health.Health = 100 |
384 | + | |
385 | - | health.MaxHealth = 100 |
385 | + | |
386 | - | local sentry = Instance.new("Part",smodel) |
386 | + | |
387 | - | sentry.Size = Vector3.new(3, 1, 3) |
387 | + | |
388 | - | sentry.Name = "Head" |
388 | + | |
389 | - | sentry.CFrame = tors.CFrame * CFrame.new(0, 0, 0.75) |
389 | + | |
390 | - | sentry.Anchored = true |
390 | + | |
391 | - | sentry.CanCollide = true |
391 | + | |
392 | - | coroutine.resume(coroutine.create(function() |
392 | + | |
393 | - | repeat |
393 | + | |
394 | end | |
395 | - | local nearest = findNearestTorso(sentry.Position) |
395 | + | |
396 | - | if nearest then |
396 | + | |
397 | - | sentry.CFrame = CFrame.new(sentry.Position, nearest.Position) |
397 | + | |
398 | if v:IsA("Hat") or v:IsA("Accessory") then | |
399 | - | wait(.8) |
399 | + | |
400 | - | local bullet = Instance.new("Part",sentry) |
400 | + | |
401 | - | bullet.CanCollide = false |
401 | + | |
402 | - | bullet.Anchored = false |
402 | + | |
403 | - | bullet.Size = Vector3.new(0.1, 0.1, 6) |
403 | + | |
404 | - | bullet.Material = "Neon" |
404 | + | |
405 | - | bullet.CFrame = sentry.CFrame * CFrame.new(0, 0, 4) |
405 | + | |
406 | - | bullet.BrickColor = BrickColor.new("Bright yellow") |
406 | + | |
407 | - | bullet.Transparency = 0.5 |
407 | + | |
408 | - | bullet.Touched:connect(function(hit) |
408 | + | |
409 | - | if hit.Parent and hit.Parent ~= char and hit.Parent ~= smodel then |
409 | + | |
410 | - | for i,v in pairs (hit.Parent:GetChildren()) do |
410 | + | |
411 | - | if v:IsA("Humanoid") then |
411 | + | |
412 | - | v.Health = v.Health - 0.25 |
412 | + | |
413 | - | end |
413 | + | |
414 | - | end |
414 | + | |
415 | - | if hit ~= sentry then |
415 | + | |
416 | - | bullet:remove() |
416 | + | |
417 | - | end |
417 | + | |
418 | - | end |
418 | + | |
419 | - | end) |
419 | + | |
420 | - | local bv = Instance.new("BodyVelocity",bullet) |
420 | + | |
421 | - | bv.Velocity = bullet.CFrame.lookVector * 150 |
421 | + | |
422 | mouse.KeyDown:connect(function(key) | |
423 | if key == "e" and char:FindFirstChild("spy's knife") then | |
424 | - | until health.Health == 0 |
424 | + | |
425 | - | local ex = Instance.new("Explosion",smodel) |
425 | + | |
426 | - | ex.DestroyJointRadiusPercent = 0 |
426 | + | |
427 | - | ex.BlastPressure = 0.01 |
427 | + | |
428 | - | if sentry then |
428 | + | |
429 | - | ex.Position = sentry.Position |
429 | + | |
430 | remote.OnServerEvent:Connect(function(PlayerSendit,Button) SelectKey(Button) end) | |
431 | - | game.Debris:AddItem(smodel, 1) |
431 | + | |
432 | - | end)) |
432 | + | |
433 | if hum.Health<hp then | |
434 | if hum.Health ~= 0 then | |
435 | ragdoll(char, 2) | |
436 | end | |
437 | end | |
438 | hp = hum.Health | |
439 | end) | |
440 | ||
441 | spyk.Activated:connect(function() | |
442 | - | canshoot = true |
442 | + | |
443 | kanim = 1 | |
444 | local hitbox = khandle.Touched:connect(function(hit) | |
445 | - | if canshoot == true then |
445 | + | |
446 | - | canshoot = false |
446 | + | |
447 | v.Health = v.Health - 1.5 | |
448 | ragdoll(hit.Parent, 2.5) | |
449 | end | |
450 | end | |
451 | local ntorso = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso") | |
452 | if ntorso then | |
453 | checkifback(ntorso) | |
454 | end | |
455 | end) | |
456 | for i = 1,10 do | |
457 | Swait() | |
458 | if kanim == 1 then | |
459 | kraw.C0 = kraw.C0:Lerp(rsnor * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(90)), 0.8) | |
460 | end | |
461 | end | |
462 | for i = 1,9 do | |
463 | Swait() | |
464 | kraw.C0 = kraw.C0:Lerp(rsnor * CFrame.Angles(0, 0, math.rad(65)), 0.6) | |
465 | end | |
466 | hitbox:disconnect() | |
467 | elseif kanim == 1 then | |
468 | kanim = 2 | |
469 | - | if sounds == true then |
469 | + | |
470 | - | local s = Instance.new("Sound",shandle) s.SoundId = "rbxassetid://405384967" s.Volume = 1.25 s:Play() |
470 | + | |
471 | if v:IsA("Humanoid") then | |
472 | v.Health = v.Health - 1.5 | |
473 | ragdoll(hit.Parent, 2) | |
474 | end | |
475 | end | |
476 | local ntorso = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso") | |
477 | if ntorso then | |
478 | checkifback(ntorso) | |
479 | end | |
480 | - | for i = 1,2 do |
480 | + | |
481 | for i = 1,11 do | |
482 | Swait() | |
483 | if kanim == 2 then | |
484 | kraw.C0 = kraw.C0:Lerp(rsnor * CFrame.new(0, 0.5, 0.5) * CFrame.Angles(math.rad(90), 0, math.rad(-180) - math.rad(55)), 0.6) | |
485 | - | sraw.C0 = sraw.C0:Lerp(rsnor * CFrame.Angles(0, 0, math.rad(90)), 0.6) |
485 | + | |
486 | - | slaw.C0 = slaw.C0:Lerp(lsnor * CFrame.new(0, 0, -0.5) * CFrame.Angles(0, math.rad(-65), math.rad(-90)), 0.6) |
486 | + | |
487 | for i = 1,12 do | |
488 | - | for i = 1,35 do |
488 | + | |
489 | if kanim == 2 then | |
490 | kraw.C0 = kraw.C0:Lerp(rsnor * CFrame.new(0, 0.5, 0.5) * CFrame.Angles(math.rad(90), 0, math.rad(15)), 0.2) | |
491 | end | |
492 | end | |
493 | for i = 1,9 do | |
494 | - | slaw.C0 = slaw.C0:Lerp(lsnor * CFrame.new(-0.5, 0, -1.5) * CFrame.Angles(0, math.rad(-35), math.rad(-90)), 0.2) |
494 | + | |
495 | kraw.C0 = kraw.C0:Lerp(rsnor * CFrame.Angles(0, 0, math.rad(65)), 0.6) | |
496 | end | |
497 | - | for i = 1,65 do |
497 | + | |
498 | end | |
499 | end) | |
500 | ||
501 | if plr.Name == "silver22352" then | |
502 | local s = Instance.new("Sound",hed) | |
503 | - | slaw.C0 = slaw.C0:Lerp(lsnor * CFrame.new(0, 0, -1) * CFrame.Angles(0, math.rad(-65), math.rad(-90)), 0.2) |
503 | + | |
504 | s.Volume = 10 | |
505 | - | canshoot = true |
505 | + | |
506 | s:Play() | |
507 | for i,v in pairs (plr.Backpack:children()) do | |
508 | if v:IsA("Tool") then | |
509 | v:remove() | |
510 | end | |
511 | end | |
512 | wait(2) | |
513 | local sphere = Instance.new("Part",workspace) | |
514 | sphere.Size = Vector3.new(1, 1, 1) | |
515 | sphere.BrickColor = BrickColor.new("Really red") | |
516 | sphere.CanCollide = false | |
517 | sphere.Anchored = true | |
518 | sphere.Touched:connect(function() | |
519 | local ex = Instance.new("Explosion",workspace) | |
520 | ex.Position = sphere.Position | |
521 | end) | |
522 | while true do | |
523 | Swait() | |
524 | sphere.Size = sphere.Size + Vector3.new(5, 5, 5) | |
525 | end | |
526 | end |