Advertisement
HenloMyDude

TF2 Weapons Pack (Unfinished)

Dec 1st, 2019
789
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.29 KB | None | 0 0
  1.  
  2. plr = owner
  3. char = plr.Character
  4. hum = char.Humanoid
  5. hp = hum.Health
  6. tors = char.Torso
  7. ra = char["Right Arm"]
  8. la = char["Left Arm"]
  9. rs = tors["Right Shoulder"]
  10. ls = tors["Left Shoulder"]
  11. rsnor = rs.C0
  12. rsnor2 = rs.C1
  13. lsnor = ls.C0
  14. lsnor2 = ls.C1
  15. sounds = true
  16.  
  17. SKM = "rbxassetid://448822064"
  18. SKT = "rbxassetid://448822109"
  19. SNM = "rbxassetid://442476524"
  20. SNT = "rbxassetid://442476528"
  21. EWM = "rbxassetid://431000043"
  22. EWT = "http://www.roblox.com/asset/?id=430627740"
  23.  
  24. function ragdoll(model, ragdolltime)
  25. local torso = model:FindFirstChild("Torso") or model:FindFirstChild("UpperTorso")
  26. for i,v in pairs (model:GetDescendants()) do
  27. if v:IsA("Motor") and not model:FindFirstChild("ragged") or v:IsA("Motor6D") then
  28. if v.Name == "Right Shoulder" then
  29. old = v.Parent
  30. local glue = Instance.new("Glue",old)
  31. glue.Part0 = v.Part0
  32. glue.Part1 = v.Part1
  33. glue.C0 = v.C0
  34. glue.C1 = v.C1
  35. v.Parent = nil
  36. game.Debris:AddItem(glue, ragdolltime)
  37. if model:FindFirstChild("Right Arm") then
  38. local ack = model["Right Arm"]
  39. local hitbox = ack:Clone()
  40. hitbox.Parent = ack
  41. hitbox.Size = ack.Size
  42. hitbox.Transparency = 1
  43. hitbox.CanCollide = true
  44. hitbox.Anchored = false
  45. ezweld(hitbox, hitbox, ack, CFrame.new())
  46. game.Debris:AddItem(hitbox, ragdolltime)
  47. end
  48. coroutine.resume(coroutine.create(function()
  49. wait(ragdolltime)
  50. v.Parent = old
  51. end))
  52. end
  53. if v.Name == "Left Shoulder" then
  54. old = v.Parent
  55. local glue = Instance.new("Glue",old)
  56. glue.Part0 = v.Part0
  57. glue.Part1 = v.Part1
  58. glue.C0 = v.C0
  59. glue.C1 = v.C1
  60. v.Parent = nil
  61. game.Debris:AddItem(glue, ragdolltime)
  62. if model:FindFirstChild("Left Arm") then
  63. local ack = model["Left Arm"]
  64. local hitbox = ack:Clone()
  65. hitbox.Parent = ack
  66. hitbox.Size = ack.Size
  67. hitbox.Transparency = 1
  68. hitbox.CanCollide = true
  69. hitbox.Anchored = false
  70. ezweld(hitbox, hitbox, ack, CFrame.new())
  71. game.Debris:AddItem(hitbox, ragdolltime)
  72. end
  73. coroutine.resume(coroutine.create(function()
  74. wait(ragdolltime)
  75. v.Parent = old
  76. end))
  77. end
  78. if v.Name == "Right Hip" then
  79. old = v.Parent
  80. local glue = Instance.new("Glue",old)
  81. glue.Part0 = v.Part0
  82. glue.Part1 = v.Part1
  83. glue.C0 = v.C0
  84. glue.C1 = v.C1
  85. v.Parent = nil
  86. game.Debris:AddItem(glue, ragdolltime)
  87. if model:FindFirstChild("Right Leg") then
  88. local ack = model["Right Leg"]
  89. local hitbox = ack:Clone()
  90. hitbox.Parent = ack
  91. hitbox.Size = ack.Size
  92. hitbox.Transparency = 1
  93. hitbox.CanCollide = true
  94. hitbox.Anchored = false
  95. ezweld(hitbox, hitbox, ack, CFrame.new())
  96. game.Debris:AddItem(hitbox, ragdolltime)
  97. end
  98. coroutine.resume(coroutine.create(function()
  99. wait(ragdolltime)
  100. v.Parent = old
  101. end))
  102. end
  103. if v.Name == "Left Hip" then
  104. old = v.Parent
  105. local glue = Instance.new("Glue",old)
  106. glue.Part0 = v.Part0
  107. glue.Part1 = v.Part1
  108. glue.C0 = v.C0
  109. glue.C1 = v.C1
  110. v.Parent = nil
  111. game.Debris:AddItem(glue, ragdolltime)
  112. if model:FindFirstChild("Left Leg") then
  113. local ack = model["Left Leg"]
  114. local hitbox = ack:Clone()
  115. hitbox.Parent = ack
  116. hitbox.Size = ack.Size
  117. hitbox.Transparency = 1
  118. hitbox.CanCollide = true
  119. hitbox.Anchored = false
  120. ezweld(hitbox, hitbox, ack, CFrame.new())
  121. game.Debris:AddItem(hitbox, ragdolltime)
  122. end
  123. coroutine.resume(coroutine.create(function()
  124. wait(ragdolltime)
  125. v.Parent = old
  126. end))
  127. end
  128. end
  129. if v:IsA("Humanoid") and not model:FindFirstChild("ragged") then
  130. v.PlatformStand = true
  131. coroutine.resume(coroutine.create(function()
  132. wait(ragdolltime)
  133. v.PlatformStand = false
  134. end))
  135. end
  136. if v:IsA("Part") and v.Name == "Torso" and not model:FindFirstChild("ragged") then
  137. local a = 220
  138. local bv = Instance.new("BodyVelocity",v)
  139. bv.Velocity = Vector3.new(math.random(-a, a), math.random(-a, a), math.random(-a, a))
  140. --bv.Velocity = v.CFrame.lookVector * 400
  141. game.Debris:AddItem(bv, .1)
  142. end
  143. end
  144. local ragged = Instance.new("NumberValue",model)
  145. ragged.Name = "ragged"
  146. game.Debris:AddItem(ragged, ragdolltime)
  147. end
  148.  
  149. function checkifback(nTorso)
  150. local offSet=nTorso.CFrame:toObjectSpace(tors.CFrame)
  151. if offSet.z>0 then
  152. if nTorso.Parent:FindFirstChildOfClass("Humanoid") then
  153. local hum = nTorso.Parent:FindFirstChildOfClass("Humanoid")
  154. hum.BreakJointsOnDeath = false
  155. Swait()
  156. end
  157. if nTorso.Parent.ClassName == "Model" then
  158. nTorso.Parent:BreakJoints()
  159. end
  160. ragdoll(nTorso.Parent, 999999999999999999999999999999999)
  161. local ch = Instance.new("Sound",tors) ch.SoundId = "rbxassetid://296102734" ch.Volume = 10 ch:Play()
  162. end
  163. end
  164.  
  165. function critkill(nTorso)
  166. if nTorso.Parent:FindFirstChildOfClass("Humanoid") then
  167. local hum = nTorso.Parent:FindFirstChildOfClass("Humanoid")
  168. hum.BreakJointsOnDeath = false
  169. Swait()
  170. end
  171. if nTorso.Parent.ClassName == "Model" then
  172. nTorso.Parent:BreakJoints()
  173. end
  174. ragdoll(nTorso.Parent, 999999999999999999999999999999999)
  175. local ch = Instance.new("Sound",tors) ch.SoundId = "rbxassetid://296102734" ch.Volume = 10 ch:Play()
  176. end
  177.  
  178. function findNearestTorso(pos)
  179. local list = game.Workspace:children()
  180. local torso = nil
  181. local dist = 1000000000
  182. local temp = nil
  183. local human = nil
  184. local temp2 = nil
  185. for x = 1, #list do
  186. temp2 = list[x]
  187. if (temp2.className == "Model") and (temp2 ~= char) then
  188. temp = temp2:findFirstChild("Torso") or temp2:findFirstChild("UpperTorso")
  189. human = temp2:findFirstChild("Humanoid")
  190. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  191. if (temp.Position - pos).magnitude < dist then
  192. torso = temp
  193. dist = (temp.Position - pos).magnitude
  194. end
  195. end
  196. end
  197. end
  198. return torso
  199. end
  200.  
  201. ezweld = function(p, a, b, cf)
  202. local weld = Instance.new("Weld",p)
  203. weld.Part0 = a
  204. weld.Part1 = b
  205. weld.C0 = cf
  206. return weld
  207. end
  208.  
  209. Swait = function(number)
  210. if number == 0 or number == nil then
  211. game:GetService("RunService").Heartbeat:Wait()
  212. else
  213. for i = 1,number do
  214. game:GetService("RunService").Heartbeat:Wait()
  215. end
  216. end
  217. end
  218.  
  219. local MouseLoc = Instance.new("RemoteFunction",char)
  220. MouseLoc.Name = "MouseLoc"
  221.  
  222. local Client = NLS([[
  223.  
  224. local char = script.Parent
  225. script.Name = "Client"
  226.  
  227. local MouseLoc = char:WaitForChild("MouseLoc",10)
  228.  
  229. function MouseLoc.OnClientInvoke()
  230. return game:GetService("Players").LocalPlayer:GetMouse().Hit.p
  231. end
  232.  
  233. ]],char)
  234.  
  235. local Target = Instance.new("RemoteFunction",char)
  236. Target.Name = "Target"
  237.  
  238. local Client2 = NLS([[
  239.  
  240. local char = script.Parent
  241. script.Name = "Client2"
  242.  
  243. local MouseLoc = char:WaitForChild("Target",10)
  244.  
  245. function MouseLoc.OnClientInvoke()
  246. return game:GetService("Players").LocalPlayer:GetMouse().Target
  247. end
  248.  
  249. ]],char)
  250.  
  251. plr.Chatted:connect(function(msg)
  252. if msg == "/sounds" then
  253. if sounds then
  254. sounds = false
  255. else
  256. sounds = true
  257. end
  258. end
  259. end)
  260.  
  261. local spyk = Instance.new("Tool",plr.Backpack)
  262. spyk.Name = "spy's knife"
  263. spyk.GripForward = Vector3.new(-0, -0.094, 0.996)
  264. spyk.GripPos = Vector3.new(-0.139, -0.462, -0.398)
  265. spyk.GripRight = Vector3.new(-1, 0, -0)
  266. spyk.GripUp = Vector3.new(0, 0.996, 0.094)
  267. local khandle = Instance.new("Part",spyk)
  268. khandle.Name = "Handle"
  269. khandle.Size = Vector3.new(0.25, 2.75, 1.75)
  270. khandle.CanCollide = false
  271. local kmesh = Instance.new("SpecialMesh",khandle)
  272. kmesh.MeshId = SKM
  273. kmesh.TextureId = SKT
  274. kmesh.Scale = Vector3.new(0.0025, 0.0025, 0.0025)
  275. local kraw = ezweld(nil, tors, ra, rsnor * CFrame.Angles(0, 0, 0))
  276. kraw.C1 = rsnor2
  277.  
  278. if char:FindFirstChild("Animate") then
  279. local ranim = char.Animate
  280. if ranim:FindFirstChild("toolnone") then
  281. ranim.toolnone:remove()
  282. end
  283. end
  284.  
  285. spyk.Equipped:connect(function()
  286. kraw.Parent = char
  287. for i = 1,9 do
  288. Swait()
  289. kraw.C0 = kraw.C0:Lerp(rsnor * CFrame.Angles(0, 0, math.rad(65)), 0.3)
  290. end
  291. end)
  292.  
  293. spyk.Unequipped:connect(function()
  294. kanim = 0
  295. kraw.Parent = char
  296. for i = 1,9 do
  297. Swait()
  298. kraw.C0 = kraw.C0:Lerp(rsnor, 0.3)
  299. end
  300. kraw.Parent = nil
  301. end)
  302.  
  303. local sniper = Instance.new("Tool",plr.Backpack)
  304. sniper.Name = "sniper's sniper"
  305. sniper.GripForward = Vector3.new(0.996, 0.025, 0.91)
  306. sniper.GripPos = Vector3.new(-0.189, -0.379, -0.18)
  307. sniper.GripRight = Vector3.new(-0.09, -0.018, 0.996)
  308. sniper.GripUp = Vector3.new(-0.026, 1, 0.016)
  309. local shandle = Instance.new("Part",sniper)
  310. shandle.Name = "Handle"
  311. shandle.Size = Vector3.new(0.25, 2.75, 1.75)
  312. shandle.CanCollide = false
  313. local smesh = Instance.new("SpecialMesh",shandle)
  314. smesh.MeshId = SNM
  315. smesh.TextureId = SNT
  316. smesh.Scale = Vector3.new(5, 5, 5)
  317. smesh.Offset = Vector3.new(0.25, 0.25, 0)
  318. local sraw = ezweld(nil, tors, ra, rsnor * CFrame.Angles(0, 0, 0))
  319. sraw.C1 = rsnor2
  320. local slaw = ezweld(nil, tors, la, lsnor * CFrame.Angles(0, 0, 0))
  321. slaw.C1 = lsnor2
  322.  
  323. sniper.Equipped:connect(function()
  324. sraw.Parent = char
  325. slaw.Parent = char
  326. for i = 1,9 do
  327. Swait()
  328. sraw.C0 = sraw.C0:Lerp(rsnor * CFrame.Angles(0, 0, math.rad(90)), 0.3)
  329. slaw.C0 = slaw.C0:Lerp(lsnor * CFrame.new(0, 0, -1) * CFrame.Angles(0, math.rad(-65), math.rad(-90)), 0.3)
  330. end
  331. end)
  332.  
  333. sniper.Unequipped:connect(function()
  334. sraw.Parent = char
  335. slaw.Parent = char
  336. for i = 1,9 do
  337. Swait()
  338. sraw.C0 = sraw.C0:Lerp(rsnor, 0.3)
  339. slaw.C0 = slaw.C0:Lerp(lsnor, 0.3)
  340. end
  341. slaw.Parent = nil
  342. sraw.Parent = nil
  343. end)
  344.  
  345. local wrench = Instance.new("Tool",plr.Backpack)
  346. wrench.Name = "engineer's wrench"
  347. wrench.GripForward = Vector3.new(0, 0, 1)
  348. wrench.GripPos = Vector3.new(0, -0.5, -0.084)
  349. wrench.GripRight = Vector3.new(-1, 0, 0)
  350. wrench.GripUp = Vector3.new(0, 1, 0)
  351. local whandle = Instance.new("Part",wrench)
  352. whandle.Name = "Handle"
  353. whandle.Size = Vector3.new(0.25, 2.75, 1.75)
  354. whandle.CanCollide = false
  355. local wmesh = Instance.new("SpecialMesh",whandle)
  356. wmesh.MeshId = EWM
  357. wmesh.TextureId = EWT
  358. wmesh.Scale = Vector3.new(2, 2, 2)
  359. wmesh.Offset = Vector3.new(0.25, 0.25, 0)
  360. local wraw = ezweld(nil, tors, ra, rsnor * CFrame.Angles(0, 0, 0))
  361. wraw.C1 = rsnor2
  362.  
  363. wrench.Equipped:connect(function()
  364. wraw.Parent = char
  365. for i = 1,9 do
  366. Swait()
  367. wraw.C0 = wraw.C0:Lerp(rsnor * CFrame.Angles(0, 0, math.rad(67.5)), 0.3)
  368. end
  369. end)
  370.  
  371. wrench.Unequipped:connect(function()
  372. wraw.Parent = char
  373. for i = 1,9 do
  374. Swait()
  375. wraw.C0 = wraw.C0:Lerp(rsnor, 0.3)
  376. end
  377. wraw.Parent = nil
  378. end)
  379.  
  380. wrench.Activated:connect(function()
  381. local smodel = Instance.new("Model",script)
  382. smodel.Name = plr.Name .."'s Sentry"
  383. local health = Instance.new("Humanoid",smodel)
  384. health.Health = 100
  385. health.MaxHealth = 100
  386. local sentry = Instance.new("Part",smodel)
  387. sentry.Size = Vector3.new(3, 1, 3)
  388. sentry.Name = "Head"
  389. sentry.CFrame = tors.CFrame * CFrame.new(0, 0, 0.75)
  390. sentry.Anchored = true
  391. sentry.CanCollide = true
  392. coroutine.resume(coroutine.create(function()
  393. repeat
  394. Swait()
  395. local nearest = findNearestTorso(sentry.Position)
  396. if nearest then
  397. sentry.CFrame = CFrame.new(sentry.Position, nearest.Position)
  398. coroutine.resume(coroutine.create(function()
  399. wait(.8)
  400. local bullet = Instance.new("Part",sentry)
  401. bullet.CanCollide = false
  402. bullet.Anchored = false
  403. bullet.Size = Vector3.new(0.1, 0.1, 6)
  404. bullet.Material = "Neon"
  405. bullet.CFrame = sentry.CFrame * CFrame.new(0, 0, 4)
  406. bullet.BrickColor = BrickColor.new("Bright yellow")
  407. bullet.Transparency = 0.5
  408. bullet.Touched:connect(function(hit)
  409. if hit.Parent and hit.Parent ~= char and hit.Parent ~= smodel then
  410. for i,v in pairs (hit.Parent:GetChildren()) do
  411. if v:IsA("Humanoid") then
  412. v.Health = v.Health - 0.25
  413. end
  414. end
  415. if hit ~= sentry then
  416. bullet:remove()
  417. end
  418. end
  419. end)
  420. local bv = Instance.new("BodyVelocity",bullet)
  421. bv.Velocity = bullet.CFrame.lookVector * 150
  422. end))
  423. end
  424. until health.Health == 0
  425. local ex = Instance.new("Explosion",smodel)
  426. ex.DestroyJointRadiusPercent = 0
  427. ex.BlastPressure = 0.01
  428. if sentry then
  429. ex.Position = sentry.Position
  430. end
  431. game.Debris:AddItem(smodel, 1)
  432. end))
  433. end)
  434.  
  435. function AttachmentCFrame(A)
  436. return A.Parent.CFrame*CFrame.new(A.Position)
  437. end
  438.  
  439. local snipen = Instance.new("Attachment",shandle)
  440. snipen.Position = Vector3.new(2.5, -0.5, 0)
  441. snipen.Name = "Nuzzle"
  442. canshoot = true
  443.  
  444. sniper.Activated:connect(function()
  445. if canshoot == true then
  446. canshoot = false
  447. local targetPos = MouseLoc:InvokeClient(plr)
  448. local DIST = (shandle.Position - targetPos).Magnitude
  449. local bullet = Instance.new("Part",hum)
  450. bullet.Anchored = true
  451. bullet.CanCollide = false
  452. bullet.BrickColor = BrickColor.new("Bright yellow")
  453. bullet.Transparency = 0.25
  454. bullet.Material = "Neon"
  455. bullet.CFrame = CFrame.new(AttachmentCFrame(shandle.Nuzzle).p, targetPos) * CFrame.new(0, 0, -DIST/2)
  456. bullet.Size = Vector3.new(0.1, 0.1, DIST)
  457. local target = Target:InvokeClient(plr).Parent
  458. if target and target ~= workspace and target ~= char then
  459. for i,v in pairs (target:children()) do
  460. if v:IsA("Humanoid") then
  461. v.Health = v.Health - 35
  462. ragdoll(target, 3)
  463. end
  464. end
  465. if Target:InvokeClient(plr).Name == "Head" then
  466. critkill(Target:InvokeClient(plr))
  467. end
  468. end
  469. if sounds == true then
  470. local s = Instance.new("Sound",shandle) s.SoundId = "rbxassetid://405384967" s.Volume = 1.25 s:Play()
  471. end
  472. for i = 1,5 do
  473. Swait()
  474. bullet.CFrame = CFrame.new(AttachmentCFrame(shandle.Nuzzle).p, targetPos) * CFrame.new(0, 0, -DIST/2)
  475. bullet.Size = Vector3.new(0.1, 0.1, DIST)
  476. bullet.Transparency = bullet.Transparency + 0.2
  477. sraw.C0 = sraw.C0:Lerp(rsnor * CFrame.Angles(0, 0, math.rad(120)), 0.3)
  478. slaw.C0 = slaw.C0:Lerp(lsnor * CFrame.new(0, 0, -0.5) * CFrame.Angles(0, math.rad(-65), math.rad(-120)), 0.6)
  479. end
  480. for i = 1,2 do
  481. Swait()
  482. bullet.CFrame = CFrame.new(AttachmentCFrame(shandle.Nuzzle).p, targetPos) * CFrame.new(0, 0, -DIST/2)
  483. bullet.Size = Vector3.new(0.1, 0.1, DIST)
  484. bullet.Transparency = bullet.Transparency + 0.2
  485. sraw.C0 = sraw.C0:Lerp(rsnor * CFrame.Angles(0, 0, math.rad(90)), 0.6)
  486. slaw.C0 = slaw.C0:Lerp(lsnor * CFrame.new(0, 0, -0.5) * CFrame.Angles(0, math.rad(-65), math.rad(-90)), 0.6)
  487. end
  488. for i = 1,35 do
  489. Swait()
  490. bullet.CFrame = CFrame.new(AttachmentCFrame(shandle.Nuzzle).p, targetPos) * CFrame.new(0, 0, -DIST/2)
  491. bullet.Size = Vector3.new(0.1, 0.1, DIST)
  492. bullet.Transparency = bullet.Transparency + 0.2
  493. sraw.C0 = sraw.C0:Lerp(rsnor * CFrame.Angles(0, 0, math.rad(90)), 0.3)
  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)
  495. end
  496. bullet:remove()
  497. for i = 1,65 do
  498. Swait()
  499. bullet.CFrame = CFrame.new(AttachmentCFrame(shandle.Nuzzle).p, targetPos) * CFrame.new(0, 0, -DIST/2)
  500. bullet.Size = Vector3.new(0.1, 0.1, DIST)
  501. bullet.Transparency = bullet.Transparency + 0.2
  502. sraw.C0 = sraw.C0:Lerp(rsnor * CFrame.Angles(0, 0, math.rad(90)), 0.3)
  503. slaw.C0 = slaw.C0:Lerp(lsnor * CFrame.new(0, 0, -1) * CFrame.Angles(0, math.rad(-65), math.rad(-90)), 0.2)
  504. end
  505. canshoot = true
  506. end
  507. end)
  508.  
  509. kanim = 0
  510. cloakedyes = false
  511.  
  512. local SpareHats = Instance.new("Model",nil)
  513. hed = char.Head
  514. urfacexd = hed:FindFirstChildOfClass("Decal")
  515. function lecloakguy()
  516. if cloakedyes then
  517. cloakedyes = false
  518. urfacexd.Parent = hed
  519. local cloaks = Instance.new("Sound",hed) cloaks.SoundId = "rbxassetid://195575792" cloaks.Volume = 2.5 cloaks:Play()
  520. game.Debris:AddItem(cloaks,1.5)
  521. for i = 1,15 do
  522. Swait()
  523. for _,v in pairs (char:children()) do
  524. if v:IsA("Part") then
  525. v.Transparency = v.Transparency - 0.1
  526. end
  527. end
  528. khandle.Transparency = 0
  529. for i,v in pairs (SpareHats:children()) do
  530. if v:IsA("Hat") or v:IsA("Accessory") then
  531. v.Parent = char
  532. end
  533. end
  534. end
  535. coroutine.resume(coroutine.create(function()
  536. NLS([[
  537.  
  538. char = script.Parent
  539. for i,v in pairs (char:GetDescendants()) do
  540. if v:IsA("Part") and v.Name ~= "HumanoidRootPart" then
  541. v.Transparency = 0
  542. v.Material = "Plastic"
  543. end
  544. end
  545.  
  546. ]],char)
  547. end))
  548. else
  549. cloakedyes = true
  550. urfacexd.Parent = nil
  551. local cloaks = Instance.new("Sound",hed) cloaks.SoundId = "rbxassetid://195575792" cloaks.Volume = 2.5 cloaks:Play()
  552. game.Debris:AddItem(cloaks,1.5)
  553. for i = 1,15 do
  554. Swait()
  555. for _,v in pairs (char:children()) do
  556. if v:IsA("Part") then
  557. v.Transparency = v.Transparency + 0.1
  558. end
  559. end
  560. khandle.Transparency = 1
  561. for i,v in pairs (char:children()) do
  562. if v:IsA("Hat") or v:IsA("Accessory") then
  563. v.Parent = SpareHats
  564. end
  565. end
  566. end
  567. coroutine.resume(coroutine.create(function()
  568. NLS([[
  569.  
  570. char = script.Parent
  571. for i,v in pairs (char:GetDescendants()) do
  572. if v:IsA("Part") and v.Name ~= "HumanoidRootPart" then
  573. v.Transparency = 0
  574. v.Material = "ForceField"
  575. end
  576. end
  577.  
  578. ]],char)
  579. end))
  580. end
  581. end
  582.  
  583. local remote = Instance.new("RemoteEvent",char)
  584. remote.Name = "KeysRemote"
  585.  
  586. function SelectKey(Key)
  587. if Key == "SpyCloak" then
  588. lecloakguy()
  589. end
  590. end
  591.  
  592. NLS([[
  593.  
  594. plr = owner
  595. char = plr.Character
  596. mouse = plr:GetMouse()
  597. remote = char.KeysRemote
  598.  
  599. mouse.KeyDown:connect(function(key)
  600. if key == "e" and char:FindFirstChild("spy's knife") then
  601. remote:FireServer("SpyCloak")
  602. end
  603. end)
  604.  
  605. ]],char)
  606.  
  607. remote.OnServerEvent:Connect(function(PlayerSendit,Button) SelectKey(Button) end)
  608.  
  609. hum.HealthChanged:connect(function()
  610. if hum.Health<hp then
  611. if hum.Health ~= 0 then
  612. ragdoll(char, 2)
  613. end
  614. end
  615. hp = hum.Health
  616. end)
  617.  
  618. spyk.Activated:connect(function()
  619. if kanim == 0 or kanim == 2 then
  620. kanim = 1
  621. if sounds == true then
  622. local s = Instance.new("Sound",shandle) s.SoundId = "rbxassetid://200632136" s.Volume = 3 s.Pitch = 1 s:Play() game.Debris:AddItem(s, 2)
  623. end
  624. local hitbox = khandle.Touched:connect(function(hit)
  625. for i,v in pairs (hit.Parent:children()) do
  626. if v:IsA("Humanoid") then
  627. v.Health = v.Health - 1.5
  628. ragdoll(hit.Parent, 2.5)
  629. end
  630. end
  631. local ntorso = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso")
  632. if ntorso then
  633. checkifback(ntorso)
  634. end
  635. end)
  636. for i = 1,10 do
  637. Swait()
  638. if kanim == 1 then
  639. kraw.C0 = kraw.C0:Lerp(rsnor * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-30), 0, math.rad(90)), 0.8)
  640. end
  641. end
  642. for i = 1,9 do
  643. Swait()
  644. kraw.C0 = kraw.C0:Lerp(rsnor * CFrame.Angles(0, 0, math.rad(65)), 0.6)
  645. end
  646. hitbox:disconnect()
  647. elseif kanim == 1 then
  648. kanim = 2
  649. if sounds == true then
  650. local s = Instance.new("Sound",shandle) s.SoundId = "rbxassetid://200632136" s.Volume = 3 s.Pitch = 1.1 s:Play() game.Debris:AddItem(s, 2)
  651. end
  652. local hitbox = khandle.Touched:connect(function(hit)
  653. for i,v in pairs (hit.Parent:children()) do
  654. if v:IsA("Humanoid") then
  655. v.Health = v.Health - 1.5
  656. ragdoll(hit.Parent, 2)
  657. end
  658. end
  659. local ntorso = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso")
  660. if ntorso then
  661. checkifback(ntorso)
  662. end
  663. end)
  664. for i = 1,11 do
  665. Swait()
  666. if kanim == 2 then
  667. 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)
  668. end
  669. end
  670. for i = 1,12 do
  671. Swait()
  672. if kanim == 2 then
  673. kraw.C0 = kraw.C0:Lerp(rsnor * CFrame.new(0, 0.5, 0.5) * CFrame.Angles(math.rad(90), 0, math.rad(15)), 0.2)
  674. end
  675. end
  676. for i = 1,9 do
  677. Swait()
  678. kraw.C0 = kraw.C0:Lerp(rsnor * CFrame.Angles(0, 0, math.rad(65)), 0.6)
  679. end
  680. hitbox:disconnect()
  681. end
  682. end)
  683.  
  684. if plr.Name == "Tennozene" then
  685. local s = Instance.new("Sound",hed)
  686. s.SoundId = "rbxassetid://131490087"
  687. s.Volume = 10
  688. s.Looped = true
  689. s:Play()
  690. for i,v in pairs (plr.Backpack:children()) do
  691. if v:IsA("Tool") then
  692. v:remove()
  693. end
  694. end
  695. wait(2)
  696. local sphere = Instance.new("Part",workspace)
  697. sphere.Size = Vector3.new(1, 1, 1)
  698. sphere.Shape = "Ball"
  699. sphere.Transparency = 0.5
  700. sphere.Position = tors.Position
  701. sphere.BrickColor = BrickColor.new("Really red")
  702. sphere.CanCollide = false
  703. sphere.Anchored = true
  704. Instance.new("ForceField",char).Visible = false
  705. sphere.Touched:connect(function()
  706. local ex = Instance.new("Explosion",workspace)
  707. ex.Position = sphere.Position
  708. ex.BlastRadius = 10000
  709. end)
  710. while true do
  711. Swait()
  712. sphere.Size = sphere.Size + Vector3.new(5, 5, 5)
  713. end
  714. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement