Advertisement
zed_isJayTheLionJR

Untitled

Jun 18th, 2018
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 55.09 KB | None | 0 0
  1. local ContentProvider = game:GetService("ContentProvider")
  2.  
  3. local function LoadAssets(AssetList)
  4. -- Takes an asset list and preloads it. Will not wait for them to load.
  5.  
  6. for _, AssetId in pairs(AssetList) do
  7. ContentProvider:Preload("http://www.roblox.com/asset/?id=" .. AssetId)
  8. end
  9. end
  10.  
  11. LoadAssets({11442510,30956707})
  12. local Gibs = game.Workspace
  13.  
  14. function Kill(Character)
  15. Character.Humanoid.Health = 0
  16. local poo = Instance.new("IntValue",Character)
  17. poo.Name = "haha nope"
  18. local svch = Character
  19. local hum = Character:findFirstChild("Humanoid")
  20. Character.Archivable = true
  21. local chrclone = Character:clone()
  22. Character.Archivable = false
  23.  
  24. local ch = chrclone:GetChildren()
  25. local i
  26. for i = 1,#ch do
  27. if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" or ch[i].ClassName == "Script" then
  28. ch[i]:remove()
  29. end
  30. end
  31. local function Scan(ch)
  32. local e
  33. for e = 1,#ch do
  34. Scan(ch[e]:GetChildren())
  35. if ch[e].ClassName == "Weld" or ch[e].ClassName == "Motor6D" then
  36. ch[e]:remove()
  37. end
  38. end
  39. end
  40. Scan(chrclone:GetChildren())
  41.  
  42. local hum2 = chrclone:findFirstChild("Humanoid")
  43.  
  44.  
  45. if hum2 ~= nil then
  46. hum2.Name = "Humanoid2"
  47. hum2.PlatformStand = true
  48. hum2.Sit = true
  49. hum2.MaxHealth = 0
  50. hum2.Health = 0
  51. end
  52.  
  53. local ch = Character:GetChildren()
  54. local i
  55. for i = 1,#ch do
  56. if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
  57. ch[i]:remove()
  58. end
  59. end
  60.  
  61. wait(0.2)
  62.  
  63. local ch = Character:GetChildren()
  64. local i
  65. for i = 1,#ch do
  66. if ch[i].ClassName == "Part" or ch[i].ClassName == "Hat" or ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
  67. ch[i]:remove()
  68. end
  69. end
  70. Character = chrclone
  71. local Torso = Character.Torso
  72. local movevector = Vector3.new()
  73.  
  74. if Torso then
  75. local Head = Character:FindFirstChild("Head")
  76. local Limb = Character:FindFirstChild("Right Arm")
  77. if Limb then
  78.  
  79. Limb.CFrame = Torso.CFrame * CFrame.new(1.5, 0, 0)
  80. local Joint = Instance.new("Glue")
  81. Joint.Name = "RightShoulder"
  82. Joint.Part0 = Torso
  83. Joint.Part1 = Limb
  84. Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  85. Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  86. Joint.Parent = Torso
  87.  
  88. local B = Instance.new("Part")
  89. B.TopSurface = 0
  90. B.BottomSurface = 0
  91. B.formFactor = "Symmetric"
  92. B.Size = Vector3.new(1, 1, 1)
  93. B.Transparency = 1
  94. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  95. B.Parent = Character
  96. local W = Instance.new("Weld")
  97. W.Part0 = Limb
  98. W.Part1 = B
  99. W.C0 = CFrame.new(0, -0.5, 0)
  100. W.Parent = Limb
  101.  
  102. end
  103. local Limb = Character:FindFirstChild("Left Arm")
  104. if Limb then
  105.  
  106. Limb.CFrame = Torso.CFrame * CFrame.new(-1.5, 0, 0)
  107. local Joint = Instance.new("Glue")
  108. Joint.Name = "LeftShoulder"
  109. Joint.Part0 = Torso
  110. Joint.Part1 = Limb
  111. Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  112. Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  113. Joint.Parent = Torso
  114.  
  115. local B = Instance.new("Part")
  116. B.TopSurface = 0
  117. B.BottomSurface = 0
  118. B.formFactor = "Symmetric"
  119. B.Size = Vector3.new(1, 1, 1)
  120. B.Transparency = 1
  121. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  122. B.Parent = Character
  123. local W = Instance.new("Weld")
  124. W.Part0 = Limb
  125. W.Part1 = B
  126. W.C0 = CFrame.new(0, -0.5, 0)
  127. W.Parent = Limb
  128.  
  129. end
  130. local Limb = Character:FindFirstChild("Right Leg")
  131. if Limb then
  132.  
  133. Limb.CFrame = Torso.CFrame * CFrame.new(0.5, -2, 0)
  134. local Joint = Instance.new("Glue")
  135. Joint.Name = "RightHip"
  136. Joint.Part0 = Torso
  137. Joint.Part1 = Limb
  138. Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  139. Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  140. Joint.Parent = Torso
  141.  
  142. local B = Instance.new("Part")
  143. B.TopSurface = 0
  144. B.BottomSurface = 0
  145. B.formFactor = "Symmetric"
  146. B.Size = Vector3.new(1, 1, 1)
  147. B.Transparency = 1
  148. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  149. B.Parent = Character
  150. local W = Instance.new("Weld")
  151. W.Part0 = Limb
  152. W.Part1 = B
  153. W.C0 = CFrame.new(0, -0.5, 0)
  154. W.Parent = Limb
  155.  
  156. end
  157. local Limb = Character:FindFirstChild("Left Leg")
  158. if Limb then
  159.  
  160. Limb.CFrame = Torso.CFrame * CFrame.new(-0.5, -2, 0)
  161. local Joint = Instance.new("Glue")
  162. Joint.Name = "LeftHip"
  163. Joint.Part0 = Torso
  164. Joint.Part1 = Limb
  165. Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  166. Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  167. Joint.Parent = Torso
  168.  
  169. local B = Instance.new("Part")
  170. B.TopSurface = 0
  171. B.BottomSurface = 0
  172. B.formFactor = "Symmetric"
  173. B.Size = Vector3.new(1, 1, 1)
  174. B.Transparency = 1
  175. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  176. B.Parent = Character
  177. local W = Instance.new("Weld")
  178. W.Part0 = Limb
  179. W.Part1 = B
  180. W.C0 = CFrame.new(0, -0.5, 0)
  181. W.Parent = Limb
  182.  
  183. end
  184. --[
  185. local Bar = Instance.new("Part")
  186. Bar.TopSurface = 0
  187. Bar.BottomSurface = 0
  188. Bar.formFactor = "Symmetric"
  189. Bar.Size = Vector3.new(1, 1, 1)
  190. Bar.Transparency = 1
  191. Bar.CFrame = Torso.CFrame * CFrame.new(0, 0.5, 0)
  192. Bar.Parent = Character
  193. local Weld = Instance.new("Weld")
  194. Weld.Part0 = Torso
  195. Weld.Part1 = Bar
  196. Weld.C0 = CFrame.new(0, 0.5, 0)
  197. Weld.Parent = Torso
  198. --]]
  199. end
  200. Character.Parent = Gibs
  201. game.Debris:AddItem(Character, 12)
  202. if movevector ~= Vector3.new() then
  203. for i = 1,10 do
  204. wait()
  205. Torso.Velocity = Vector3.new(0,0,-100)
  206. Head.Velocity = movevector * 200
  207. end
  208. end
  209. local duh = Torso
  210. ee = Instance.new("Part")
  211. ee.Anchored = false
  212. ee.CanCollide = false
  213. ee.Parent = duh
  214. ee.Transparency =1
  215. ee.Size = Vector3.new(0.15, 0.15, 0.15)
  216. wee = Instance.new("Weld")
  217. wee.Parent = duh
  218. wee.Part0 = duh
  219. wee.Part1 = ee
  220. wee.C0 = CFrame.new(0, 1, 0)
  221. ge = Instance.new('ParticleEmitter')
  222. ge.Parent = ee
  223. ge.Texture = "rbxassetid://29712167"
  224. ge.Size = NumberSequence.new(0.2,0.05)
  225. ge.Acceleration = Vector3.new(0, -20, 0)
  226. ge.Rate = 100000
  227. ge.Speed = NumberRange.new(7,8)
  228. ge.Lifetime = NumberRange.new(3,4)
  229. ge.VelocitySpread = 10
  230. ge.VelocityInheritance = 0.3
  231. ea = Instance.new("Part")
  232. ea.Anchored = false
  233. ea.CanCollide = false
  234. ea.Parent = Character.Head
  235. ea.Transparency =1
  236. ea.Size = Vector3.new(0.15, 0.15, 0.15)
  237. wea = Instance.new("Weld")
  238. wea.Parent = Character.Head
  239. wea.Part0 = Character.Head
  240. wea.Part1 = ea
  241. wea.C0 = CFrame.new(0, -0.7, 0)
  242. ga = Instance.new('ParticleEmitter')
  243. ga.Parent = ea
  244. ga.Texture = "rbxassetid://29712167"
  245. ga.Size = NumberSequence.new(0.2,0.05)
  246. ga.Acceleration = Vector3.new(0, -20, 0)
  247. ga.Rate = 100000
  248. ga.Speed = NumberRange.new(7,8)
  249. ga.Lifetime = NumberRange.new(3,4)
  250. ga.VelocitySpread = 10
  251. ga.VelocityInheritance = 0.3
  252. ga.EmissionDirection = Enum.NormalId.Bottom
  253. end
  254.  
  255. local plr = game.Players.LocalPlayer
  256. local chr = plr.Character
  257. local mouse = plr:GetMouse()
  258. local intro = coroutine.wrap(function()
  259. local gui = Instance.new('ScreenGui',plr.PlayerGui)
  260. gui.Name = "Intro"
  261. local fr = Instance.new('Frame',gui)
  262. fr.Size = UDim2.new(0.4,0,0,0)
  263. fr.Position = UDim2.new(0.3,0,-0.1,0)
  264. fr.BorderColor3 = Color3.fromRGB(198, 45, 45)
  265. fr.BorderSizePixel = 5
  266. fr.BackgroundColor3 = Color3.fromRGB(38, 38, 38)
  267. local title = Instance.new('TextLabel',fr)
  268. title.Size = UDim2.new(1,0,0.4,0)
  269. title.Position = UDim2.new(0,0,0.1,0)
  270. title.BackgroundTransparency = 1
  271. title.TextColor3 = Color3.fromRGB(198, 45, 45)
  272. title.TextScaled = true
  273. title.Text = 'Deadpool Script'
  274. local desc = Instance.new('TextLabel',fr)
  275. desc.Size = UDim2.new(1,0,0.5,0)
  276. desc.Position = UDim2.new(0,0,0.5,0)
  277. desc.BackgroundTransparency = 1
  278. desc.TextColor3 = Color3.fromRGB(198, 45, 45)
  279. desc.TextScaled = true
  280. desc.Text = ''
  281. wait(1)
  282. fr:TweenSize(UDim2.new(0.4,0,0.5,0),Enum.EasingDirection.Out,Enum.EasingStyle.Bounce,2)
  283. wait(2)
  284. local str = 'Hotkey to equip katana is N. Use Z to stab and X to slice heads off. Created by mustardfoot.'
  285. local leng = string.len(str)
  286. for i = 1,leng do
  287. desc.Text = string.sub(str,1,i)
  288. wait()
  289. end
  290. wait(2)
  291. fr:TweenSize(UDim2.new(0.4,0,0,0),Enum.EasingDirection.Out,Enum.EasingStyle.Bounce,0.8)
  292. wait(2)
  293. gui:Destroy()
  294. end)
  295. intro()
  296.  
  297.  
  298. wait(2)
  299. local tors = chr.Torso
  300. chr.Head.Transparency = 1
  301. for i,v in pairs(chr:GetChildren()) do
  302. if v.ClassName == "CharacterMesh" then
  303. v:Destroy()
  304. end
  305. end
  306. local humroot = chr.HumanoidRootPart:Clone()
  307. local torsclone = tors:Clone()
  308. local anim = chr.Animate:Clone()
  309. local hum = chr.Humanoid:Clone()
  310. local head = chr.Head:Clone()
  311. local neck = chr.Torso.Neck:Clone()
  312. local rightarm = chr["Right Arm"]:Clone()
  313. local leftarm = chr["Left Arm"]:Clone()
  314. local leftleg = chr["Left Leg"]:Clone()
  315. local rightleg = chr["Right Leg"]:Clone()
  316. local rightshoulder = tors["Right Shoulder"]:Clone()
  317. local leftshoulder = tors["Left Shoulder"]:Clone()
  318. local righthip = tors["Right Hip"]:Clone()
  319. local lefthip = tors["Left Hip"]:Clone()
  320. local shirt = nil
  321. local pants = nil
  322. local hats = {}
  323. local lastpos = CFrame.new(0,0,0)
  324. local on = true
  325. local doing = false
  326. local stabbing = false
  327. local slicing = false
  328. local toolz = Instance.new('Tool',plr.Backpack)
  329. toolz.Name = "Katana"
  330. toolz.RequiresHandle = false
  331. toolz.CanBeDropped = false
  332. local partz = Instance.new('Part',toolz)
  333. partz.Size = Vector3.new(0.2,0.2,3)
  334. partz.CanCollide = false
  335. local meshz = Instance.new('SpecialMesh',partz)
  336. meshz.MeshId = 'rbxassetid://11442510'
  337. meshz.TextureId = 'rbxassetid://30956707'
  338. meshz.VertexColor = Vector3.new(0,0,0)
  339.  
  340. toolz.Equipped:connect(function(mouse)
  341. if chr:FindFirstChild('Right Arm') then
  342. local weld = Instance.new('Weld',partz)
  343. weld.Part0 = partz
  344. weld.Part1 = chr["Right Arm"]
  345. weld.C0 = CFrame.new(0.9,0,-1.25)*CFrame.Angles(math.pi,0,-math.pi/2)
  346. end
  347. mouse.KeyDown:connect(function(key)
  348. if doing == false then
  349. if key == 'z' then
  350. if chr:FindFirstChild('Right Arm') and chr:FindFirstChild('Torso') then
  351. doing = true
  352. local weld = Instance.new('Weld',chr["Right Arm"])
  353. weld.Part0 = chr["Right Arm"]
  354. weld.Part1 = chr.Torso
  355. weld.C0 = CFrame.new(-1.5,0,0)
  356. for i=1,25 do
  357. weld.C0 = weld.C0:lerp(CFrame.new(-1.5,1,0.9)*CFrame.Angles(math.pi/2.5,0,-math.pi/2.5),i/25)
  358. wait()
  359. end
  360. wait()
  361. stabbing = true
  362. for i=1,10 do
  363. weld.C0 = weld.C0:lerp(CFrame.new(-1.5,0.8,0)*CFrame.Angles(-math.pi/4,0,-math.pi/6),i/10)
  364. wait()
  365. end
  366. wait()
  367. for i=1,25 do
  368. weld.C0 = weld.C0:lerp(CFrame.new(-1.5,0,0),i/25)
  369. wait()
  370. end
  371. chr["Right Arm"]:Destroy()
  372. doing = false
  373. stabbing = false
  374. end
  375. elseif key == 'x' then
  376. if chr:FindFirstChild('Right Arm') and chr:FindFirstChild('Torso') then
  377. doing = true
  378. local weld = Instance.new('Weld',chr["Right Arm"])
  379. weld.Part0 = chr["Right Arm"]
  380. weld.Part1 = chr.Torso
  381. weld.C0 = CFrame.new(-1.5,0,0)
  382. for i=1,25 do
  383. weld.C0 = weld.C0:lerp(CFrame.new(-0.5,0.7,-0.5)*CFrame.Angles(math.pi/8,math.pi/1,math.pi/1.5),i/25)
  384. wait()
  385. end
  386. wait()
  387. slicing = true
  388. for i=1,5 do
  389. weld.C0 = weld.C0:lerp(CFrame.new(-1.5,0.8,0)*CFrame.Angles(-math.pi/8,0,-math.pi/4),i/5)
  390. wait()
  391. end
  392. wait()
  393. for i=1,12.5 do
  394. weld.C0 = weld.C0:lerp(CFrame.new(-1.5,0,0),i/12.5)
  395. wait()
  396. end
  397. chr["Right Arm"]:Destroy()
  398. doing = false
  399. slicing = false
  400. end
  401. end
  402. end
  403. end)
  404. end)
  405.  
  406. partz.Touched:connect(function(hit)
  407. if hit.Parent:FindFirstChild('Humanoid') and stabbing and hit.Parent ~= chr then
  408. hit.Parent.Humanoid.Health = 0
  409. elseif hit.Parent:FindFirstChild('heck') == nil and slicing then
  410. local he = Instance.new('IntValue',hit.Parent)
  411. he.Name = "heck"
  412. Kill(hit.Parent)
  413. end
  414. end)
  415.  
  416. toolz.Unequipped:connect(function(mouse)
  417. if partz:FindFirstChildOfClass('Weld') then
  418. partz:FindFirstChildOfClass('Weld'):Destroy()
  419. end
  420. end)
  421. toolz.AncestryChanged:connect(function(child, parent)
  422. if parent ~= chr and parent ~= plr.Backpack then
  423. wait()
  424. toolz.Parent = plr.Backpack
  425. end
  426. end)
  427.  
  428. mouse.KeyDown:connect(function(key)
  429. if key == "n" then
  430. wait()
  431. toolz:Equip()
  432. end
  433. end)
  434. if chr:FindFirstChildOfClass('Shirt') then
  435. shirt = chr:FindFirstChildOfClass('Shirt'):Clone()
  436. end
  437. if chr:FindFirstChildOfClass('Pants') then
  438. pants = chr:FindFirstChildOfClass('Pants'):Clone()
  439. end
  440. for i,v in pairs(chr:GetChildren()) do
  441. if v.ClassName == "Accessory" then
  442. table.insert(hats,v:Clone())
  443. end
  444. end
  445. local rootjoint = chr.HumanoidRootPart.RootJoint:Clone()
  446. chr.Humanoid:Destroy()
  447. local gui = Instance.new('ScreenGui')
  448. gui.Parent = game.Players.LocalPlayer.PlayerGui
  449. gui.Name = "Deadpool"
  450. gui.ResetOnSpawn = false
  451. local frame = Instance.new('Frame',gui)
  452. frame.Size = UDim2.new(0.2,0,0.2,0)
  453. frame.Position = UDim2.new(0,0,0.9,0)
  454. frame.BackgroundColor3 = Color3.fromRGB(38, 38, 38)
  455. frame.BorderSizePixel = 4
  456. frame.BorderColor3 = Color3.fromRGB(198, 45, 45)
  457. frame.Active = true
  458. frame.Draggable = true
  459. local txt = Instance.new('TextLabel',frame)
  460. txt.Text = "Demon Gui"
  461. txt.TextColor3 = Color3.fromRGB(198, 45, 45)
  462. txt.Size = UDim2.new(1,0,0.3,0)
  463. txt.TextScaled = true
  464. txt.BackgroundTransparency = 1
  465. local but = Instance.new('TextButton',frame)
  466. but.Text = "Toggle Suit"
  467. but.TextColor3 = Color3.fromRGB(38, 38, 38)
  468. but.Size = UDim2.new(0.7,0,0.3,0)
  469. but.Position = UDim2.new(0.15,0,0.5,0)
  470. but.BorderSizePixel = 0
  471. but.TextScaled = true
  472. but.BackgroundColor3 = Color3.fromRGB(198, 45, 45)
  473. but.MouseButton1Down:connect(function()
  474. on = not on
  475. end)
  476. game:GetService('RunService').Stepped:connect(function()
  477. if chr.Parent == nil then
  478. chr.RobloxLocked = false
  479. chr.Parent = game.Workspace
  480. end
  481. if chr:FindFirstChildOfClass('Humanoid') == nil then
  482. hum:Clone().Parent = chr
  483. chr.Animate:Destroy()
  484. anim:Clone().Parent = chr
  485. end
  486. if chr:FindFirstChild('HumanoidRootPart') == nil then
  487. humroot:Clone().Parent = chr
  488. humroot.CFrame = lastpos
  489. chr.Humanoid:Destroy()
  490. hum:Clone().Parent = chr
  491. chr.Animate:Destroy()
  492. anim:Clone().Parent = chr
  493. chr.HumanoidRootPart.RootJoint:Destroy()
  494. end
  495. if chr:FindFirstChild('Torso') == nil then
  496. chr.Humanoid:Destroy()
  497. local tor = tors:Clone()
  498. tor.Parent = chr
  499. hum:Clone().Parent = chr
  500. chr.Animate:Destroy()
  501. anim:Clone().Parent = chr
  502. end
  503. if chr.HumanoidRootPart:FindFirstChild('RootJoint') == nil then
  504. local rtj = rootjoint:Clone()
  505. rtj.Parent = chr.HumanoidRootPart
  506. rtj.Part0 = chr.HumanoidRootPart
  507. rtj.Part1 = chr.Torso
  508. end
  509. if chr:FindFirstChild('Head') == nil then
  510. chr.Humanoid:Destroy()
  511. head:Clone().Parent = chr
  512. hum:Clone().Parent = chr
  513. chr.Animate:Destroy()
  514. anim:Clone().Parent = chr
  515. end
  516. if chr.Torso:FindFirstChild('Neck') == nil then
  517. chr.Humanoid:Destroy()
  518. local hec = neck:Clone()
  519. hec.Parent = chr.Torso
  520. hec.Part0 = chr.Torso
  521. hec.Part1 = chr.Head
  522. hum:Clone().Parent = chr
  523. chr.Animate:Destroy()
  524. anim:Clone().Parent = chr
  525. end
  526. if chr:FindFirstChild('Right Leg') == nil then
  527. rightleg:Clone().Parent = chr
  528. local fi = righthip:Clone()
  529. fi.Parent = chr.Torso
  530. fi.Part0 = chr.Torso
  531. fi.Part1 = chr["Right Leg"]
  532. end
  533. if chr:FindFirstChild('Right Arm') == nil then
  534. rightarm:Clone().Parent = chr
  535. local fi = rightshoulder:Clone()
  536. fi.Parent = chr.Torso
  537. fi.Part0 = chr.Torso
  538. fi.Part1 = chr["Right Arm"]
  539. end
  540. if chr:FindFirstChild('Left Leg') == nil then
  541. leftleg:Clone().Parent = chr
  542. local fi = lefthip:Clone()
  543. fi.Parent = chr.Torso
  544. fi.Part0 = chr.Torso
  545. fi.Part1 = chr["Left Leg"]
  546. end
  547. if chr:FindFirstChild('Left Arm') == nil then
  548. leftarm:Clone().Parent = chr
  549. local fi = leftshoulder:Clone()
  550. fi.Parent = chr.Torso
  551. fi.Part0 = chr.Torso
  552. fi.Part1 = chr["Left Arm"]
  553. end
  554. for i,v in pairs(chr:GetChildren()) do
  555. if v.Name == "Mask" or v.ClassName == "Accessory" or v.ClassName == "Shirt" or v.ClassName == "Pants" or v.Name == "KatanaHolder" then
  556. v:Destroy()
  557. end
  558. end
  559. chr.Humanoid.Health = chr.Humanoid.MaxHealth
  560. if partz:FindFirstChild('Weld') == nil and toolz.Parent == chr then
  561. local weld = Instance.new('Weld',partz)
  562. weld.Part0 = partz
  563. weld.Part1 = chr["Right Arm"]
  564. weld.C0 = CFrame.new(0.9,0,-1.25)*CFrame.Angles(math.pi,0,-math.pi/2)
  565. end
  566. lastpos = chr.HumanoidRootPart.CFrame
  567. local kat = Instance.new('Part',chr)
  568. kat.Size = Vector3.new(0.4,3,0.2)
  569. kat.Name = "KatanaHolder"
  570. kat.Material = Enum.Material.SmoothPlastic
  571. kat.BrickColor = BrickColor.new('Really black')
  572. kat.CanCollide = false
  573. local we = Instance.new('Weld',kat)
  574. we.Part0 = kat
  575. we.Part1 = chr.Torso
  576. we.C0 = CFrame.new(0,0,-0.5)*CFrame.Angles(0,0,0.5)
  577. if on == true then
  578. local shirt = Instance.new('Shirt',chr)
  579. shirt.ShirtTemplate = 'rbxassetid://1873349518'
  580. local pants = Instance.new('Pants',chr)
  581. pants.PantsTemplate = 'rbxassetid://1035284728'
  582. else
  583. chr.Head.Transparency = 0
  584. if shirt ~= nil then
  585. shirt:Clone().Parent = chr
  586. end
  587. if pants ~= nil then
  588. pants:Clone().Parent = chr
  589. end
  590. for i,v in pairs(hats) do
  591. v:Clone().Parent = chr
  592. end
  593. end
  594. end)
  595.  
  596. --------------------------------------------------------------------------------
  597. --A Really Mad Guy with a Knife, a Tec-9 and a Sawed-Off! THOSE KIDS WILL PAY!--
  598. --------------------------------------------------------------------------------
  599. --By CKbackup (Sugarie Saffron) --
  600. --YT: https://www.youtube.com/channel/UC8n9FFz7e6Zo13ob_5F9MJw--
  601. --Discord: Sugarie Saffron#4705 --
  602. ----------------------------------------------------------------
  603.  
  604. wait(1/60)
  605. Effects = { }
  606. local Player = game:service'Players'.localPlayer
  607. local chara = Player.Character
  608. local Humanoid = chara:FindFirstChildOfClass("Humanoid")
  609. local Mouse = Player:GetMouse()
  610. local LeftArm = chara["Left Arm"]
  611. local RightArm = chara["Right Arm"]
  612. local LeftLeg = chara["Left Leg"]
  613. local RightLeg = chara["Right Leg"]
  614. local Head = chara.Head
  615. local Torso = chara.Torso
  616. local Camera = workspace.CurrentCamera
  617. local RootPart = chara.HumanoidRootPart
  618. local RootJoint = RootPart.RootJoint
  619. local attack = false
  620. local Anim = 'Idle'
  621. local attacktype = 1
  622. local delays = false
  623. local play = true
  624. local targetted = nil
  625. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  626. local velocity = RootPart.Velocity.y
  627. local sine = 0
  628. local change = 1
  629. local doe = 0
  630. local Create = LoadLibrary("RbxUtility").Create
  631. local debby = game:GetService("Debris")
  632. Humanoid.WalkSpeed = 80
  633.  
  634. Humanoid.Animator.Parent = nil
  635. chara.Animate.Parent = nil
  636.  
  637. local newMotor = function(part0, part1, c0, c1)
  638. local w = Create('Motor'){
  639. Parent = part0,
  640. Part0 = part0,
  641. Part1 = part1,
  642. C0 = c0,
  643. C1 = c1,
  644. }
  645. return w
  646. end
  647.  
  648. function clerp(a, b, t)
  649. return a:lerp(b, t)
  650. end
  651.  
  652. RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  653. NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  654.  
  655. local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
  656. local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
  657. local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
  658. local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
  659. RootJoint.C1 = CFrame.new(0, 0, 0)
  660. RootJoint.C0 = CFrame.new(0, 0, 0)
  661. Torso.Neck.C1 = CFrame.new(0, 0, 0)
  662. Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
  663.  
  664. local rarmc1 = RW.C1
  665. local larmc1 = LW.C1
  666. local rlegc1 = RH.C1
  667. local llegc1 = LH.C1
  668.  
  669. local resetc1 = false
  670.  
  671. function PlayAnimationFromTable(table, speed, bool)
  672. RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
  673. Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed)
  674. RW.C0 = clerp(RW.C0, table[3], speed)
  675. LW.C0 = clerp(LW.C0, table[4], speed)
  676. RH.C0 = clerp(RH.C0, table[5], speed)
  677. LH.C0 = clerp(LH.C0, table[6], speed)
  678. if bool == true then
  679. if resetc1 == false then
  680. resetc1 = true
  681. RootJoint.C1 = RootJoint.C1
  682. Torso.Neck.C1 = Torso.Neck.C1
  683. RW.C1 = rarmc1
  684. LW.C1 = larmc1
  685. RH.C1 = rlegc1
  686. LH.C1 = llegc1
  687. end
  688. end
  689. end
  690.  
  691. ArtificialHB = Instance.new("BindableEvent", script)
  692. ArtificialHB.Name = "Heartbeat"
  693. script:WaitForChild("Heartbeat")
  694. frame = 0.03333333333333
  695. tf = 0
  696. allowframeloss = false
  697. tossremainder = false
  698. lastframe = tick()
  699. script.Heartbeat:Fire()
  700. game:GetService("RunService").Heartbeat:connect(function(s, p)
  701. tf = tf + s
  702. if tf >= frame then
  703. if allowframeloss then
  704. script.Heartbeat:Fire()
  705. lastframe = tick()
  706. else
  707. for i = 1, math.floor(tf / frame) do
  708. script.Heartbeat:Fire()
  709. end
  710. lastframe = tick()
  711. end
  712. if tossremainder then
  713. tf = 0
  714. else
  715. tf = tf - frame * math.floor(tf / frame)
  716. end
  717. end
  718. end)
  719. function swait(num)
  720. if num == 0 or num == nil then
  721. ArtificialHB.Event:wait()
  722. else
  723. for i = 0, num do
  724. ArtificialHB.Event:wait()
  725. end
  726. end
  727. end
  728.  
  729. function RemoveOutlines(part)
  730. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  731. end
  732.  
  733. function so(id,par,pit,vol)
  734. local sou = Instance.new("Sound", par or workspace)
  735. if par == chara then
  736. sou.Parent = chara.Torso
  737. end
  738. sou.Volume = vol
  739. sou.Pitch = pit or 1
  740. sou.SoundId = "rbxassetid://" .. id
  741. sou.PlayOnRemove = true
  742. sou:Destroy()
  743. end
  744.  
  745. --This is just for builds--
  746. New = function(Object, Parent, Name, Data)
  747. local Object = Instance.new(Object)
  748. for Index, Value in pairs(Data or {}) do
  749. Object[Index] = Value
  750. end
  751. Object.Parent = Parent
  752. Object.Name = Name
  753. return Object
  754. end
  755. Naifu = New("Part",chara,"Naifu",{BrickColor = BrickColor.new("Dark stone grey"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000018, 0.200000003, 2.09999967),CFrame = CFrame.new(-46.1688423, 1.71234488, -46.3381615, -0.556669891, -0.663414657, 0.499999702, -0.766044796, 0.642787278, 7.3450633e-07, -0.321393907, -0.383021802, -0.866025567),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),})
  756. Mesh = New("SpecialMesh",Naifu,"Mesh",{Scale = Vector3.new(0.5, 0.699999988, 0.5),VertexColor = Vector3.new(0.5, 0.5, 0.5),MeshId = "rbxassetid://54430772",TextureId = "rbxassetid://54430066",MeshType = Enum.MeshType.FileMesh,})
  757. Weld = New("ManualWeld",Naifu,"Weld",{Part0 = Naifu,Part1 = LeftArm,C0 = CFrame.new(0, 0, 0, -0.556669891, -0.766044796, -0.321393907, -0.663414657, 0.642787278, -0.383021802, 0.499999702, 7.3450633e-07, -0.866025567),C1 = CFrame.new(-0.0408859253, -1.28767514, 0.650009155, -0.866025388, 0, -0.500000238, 0, 1, 0, 0.500000238, 0, -0.866025388),})
  758. TEC9 = New("Part",chara,"TEC9",{BrickColor = BrickColor.new("Dark stone grey"),Transparency = 1,Transparency = 1,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000018, 1.20000005, 1.79999959),CFrame = CFrame.new(-56.3000031, 1.29999971, -46.6999931, -1, -1.00172471e-07, -1.61844298e-08, 5.16190539e-08, -8.19882651e-09, 1, -1.29974794e-07, 1, -4.67569983e-08),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),})
  759. Mesh = New("SpecialMesh",TEC9,"Mesh",{Scale = Vector3.new(0.300000012, 0.300000012, 0.300000012),MeshId = "rbxassetid://742046473",TextureId = "rbxassetid://742046691",MeshType = Enum.MeshType.FileMesh,})
  760. Weld = New("ManualWeld",TEC9,"Weld",{Part0 = TEC9,Part1 = RightArm,C0 = CFrame.new(0, 0, 0, -1, 5.16190539e-08, -1.29974794e-07, -1.00172471e-07, -8.19882651e-09, 1, -1.61844298e-08, 1, -4.67569983e-08),C1 = CFrame.new(-0.0999984741, -1.70001817, -7.62939453e-06, -1, 0, 0, 0, 1, 0, 0, 0, -1),})
  761. DBarrel = New("Part",chara,"DBarrel",{BrickColor = BrickColor.new("Dark stone grey"),Transparency = 1,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000018, 0.799999952, 2.09999967),CFrame = CFrame.new(-42.2655792, 3.62635231, -28.7166176, 0.99998486, 0.00129485771, -0.00535738515, -0.00132099993, 0.999987245, -0.0048789978, 0.00535099953, 0.00488600042, 0.999973774),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),})
  762. Mesh = New("SpecialMesh",DBarrel,"Mesh",{Scale = Vector3.new(0.00700000022, 0.00700000022, 0.00700000022),MeshId = "rbxassetid://438826329",TextureId = "rbxassetid://438826340",MeshType = Enum.MeshType.FileMesh,})
  763. Weld = New("ManualWeld",DBarrel,"Weld",{Part0 = DBarrel,Part1 = RightArm,C0 = CFrame.new(0, 0, 0, 0.99998486, -0.00132099993, 0.00535099953, 0.00129485771, 0.999987245, 0.00488600042, -0.00535738515, -0.0048789978, 0.999973774),C1 = CFrame.new(0.00952529907, -1.46699142, -0.100050688, -0.868691146, -0.00176300027, 0.495351046, -0.495353371, 0.00488599995, -0.868677914, -0.000888805604, -0.999986589, -0.00511773303),})
  764.  
  765. local att1 = Instance.new("Attachment",Naifu)
  766. att1.Position = Vector3.new(0,.2,-.2)
  767. local att2 = Instance.new("Attachment",Naifu)
  768. att2.Position = Vector3.new(0,.1,1.5)
  769. local tr1 = Instance.new("Trail",Naifu)
  770. tr1.Color = ColorSequence.new(Color3.new(.5,.5,.5),Color3.new(1,1,1))
  771. tr1.Transparency = NumberSequence.new(0,1)
  772. tr1.Lifetime = .5
  773. tr1.Enabled = false
  774. tr1.Attachment0 = att1
  775. tr1.Attachment1 = att2
  776.  
  777. if chara:FindFirstChild("FakeHeadM") then
  778. local CorruptFace = New("Decal",chara.FakeHeadM.FakeHead,"Corrupt",{Texture = "rbxassetid://1000657824",})
  779. chara.FakeHeadM.FakeHead.Normal:Destroy()
  780. chara.FakeHeadM.FakeHead.Lood:Destroy()
  781. chara.FakeHeadM.FakeHead.Rooped:Destroy()
  782. chara.FaysG:Destroy()
  783. chara.FakeHeadM.Ahoge:Destroy()
  784. for i,v in pairs(chara:GetDescendants()) do
  785. if v.Name == "SpecPart" or v.Name == "Ears1Part" then
  786. v:Destroy()
  787. elseif v.Name == "Ears2Part" then
  788. v.Transparency = 0
  789. end
  790. end
  791. end
  792. for i, v in pairs(chara:children()) do
  793. if v:IsA("Shirt") or v:IsA("Pants") then
  794. v:Destroy()
  795. elseif v.Name == "Chest" then
  796. for a, b in pairs(v:children()) do
  797. if b.Name ~= "Tail" then
  798. b.Transparency = 1
  799. end
  800. end
  801. end
  802. end
  803. local sh = Instance.new("Shirt",chara)
  804. local pn = Instance.new("Pants",chara)
  805. sh.ShirtTemplate = "rbxassetid://567462542"
  806. pn.PantsTemplate = "rbxassetid://1521666087"
  807. ---------------------------
  808.  
  809. function rayCast(Position, Direction, Range, Ignore)
  810. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  811. end
  812.  
  813. function FindNearestTorso(Position, Distance, SinglePlayer)
  814. if SinglePlayer then
  815. return (SinglePlayer.Head.CFrame.p - Position).magnitude < Distance
  816. end
  817. local List = {}
  818. for i, v in pairs(workspace:GetDescendants()) do
  819. if v:IsA("Model") then
  820. if v:findFirstChild("Head") then
  821. if v ~= chara then
  822. if (v.Head.Position - Position).magnitude <= Distance then
  823. table.insert(List, v)
  824. end
  825. end
  826. end
  827. end
  828. end
  829. return List
  830. end
  831.  
  832. EffectModel = Create("Model"){
  833. Parent = chara,
  834. Name = "Effects",
  835. }
  836.  
  837. --Effect Functions--
  838. Effects = {
  839.  
  840. Block = function(cf,partsize,meshstart,meshadd,matr,colour,spin,inverse,factor)
  841. local p = Instance.new("Part",EffectModel)
  842. p.BrickColor = BrickColor.new(colour)
  843. p.Size = partsize
  844. p.Anchored = true
  845. p.CanCollide = false
  846. p.Material = matr
  847. p.CFrame = cf
  848. if inverse == true then
  849. p.Transparency = 1
  850. else
  851. p.Transparency = 0
  852. end
  853. local m = Instance.new("BlockMesh",p)
  854. m.Scale = meshstart
  855. coroutine.wrap(function()
  856. for i=0,1,factor do
  857. swait()
  858. if inverse == true then
  859. p.Transparency = 1-i
  860. else
  861. p.Transparency = i
  862. end
  863. m.Scale = m.Scale + meshadd
  864. if spin == true then
  865. p.CFrame = p.CFrame * CFrame.Angles(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  866. end
  867. end
  868. p:Destroy()
  869. end)()
  870. return p
  871. end,
  872.  
  873. Sphere = function(cf,partsize,meshstart,meshadd,matr,colour,inverse,factor)
  874. local p = Instance.new("Part",EffectModel)
  875. p.BrickColor = BrickColor.new(colour)
  876. p.Size = partsize
  877. p.Anchored = true
  878. p.CanCollide = false
  879. p.Material = matr
  880. p.CFrame = cf
  881. if inverse == true then
  882. p.Transparency = 1
  883. else
  884. p.Transparency = 0
  885. end
  886. local m = Instance.new("SpecialMesh",p)
  887. m.MeshType = "Sphere"
  888. m.Scale = meshstart
  889. coroutine.wrap(function()
  890. for i=0,1,factor do
  891. swait()
  892. if inverse == true then
  893. p.Transparency = 1-i
  894. else
  895. p.Transparency = i
  896. end
  897. m.Scale = m.Scale + meshadd
  898. end
  899. p:Destroy()
  900. end)()
  901. return p
  902. end,
  903.  
  904. Cylinder = function(cf,partsize,meshstart,meshadd,matr,colour,inverse,factor)
  905. local p = Instance.new("Part",EffectModel)
  906. p.BrickColor = BrickColor.new(colour)
  907. p.Size = partsize
  908. p.Anchored = true
  909. p.CanCollide = false
  910. p.Material = matr
  911. p.CFrame = cf
  912. if inverse == true then
  913. p.Transparency = 1
  914. else
  915. p.Transparency = 0
  916. end
  917. local m = Instance.new("CylinderMesh",p)
  918. m.Scale = meshstart
  919. coroutine.wrap(function()
  920. for i=0,1,factor do
  921. swait()
  922. if inverse == true then
  923. p.Transparency = 1-i
  924. else
  925. p.Transparency = i
  926. end
  927. m.Scale = m.Scale + meshadd
  928. end
  929. p:Destroy()
  930. end)()
  931. return p
  932. end,
  933.  
  934. Wave = function(cf,meshstart,meshadd,colour,spin,inverse,factor)
  935. local p = Instance.new("Part",EffectModel)
  936. p.BrickColor = BrickColor.new(colour)
  937. p.Size = Vector3.new()
  938. p.Anchored = true
  939. p.CanCollide = false
  940. p.CFrame = cf
  941. if inverse == true then
  942. p.Transparency = 1
  943. else
  944. p.Transparency = 0
  945. end
  946. local m = Instance.new("SpecialMesh",p)
  947. m.MeshId = "rbxassetid://20329976"
  948. m.Scale = meshstart
  949. coroutine.wrap(function()
  950. for i=0,1,factor do
  951. swait()
  952. if inverse == true then
  953. p.Transparency = 1-i
  954. else
  955. p.Transparency = i
  956. end
  957. m.Scale = m.Scale + meshadd
  958. p.CFrame = p.CFrame * CFrame.Angles(0,math.rad(spin),0)
  959. end
  960. p:Destroy()
  961. end)()
  962. return p
  963. end,
  964.  
  965. Ring = function(cf,meshstart,meshadd,colour,inverse,factor)
  966. local p = Instance.new("Part",EffectModel)
  967. p.BrickColor = BrickColor.new(colour)
  968. p.Size = Vector3.new()
  969. p.Anchored = true
  970. p.CanCollide = false
  971. p.CFrame = cf
  972. if inverse == true then
  973. p.Transparency = 1
  974. else
  975. p.Transparency = 0
  976. end
  977. local m = Instance.new("SpecialMesh",p)
  978. m.MeshId = "rbxassetid://3270017"
  979. m.Scale = meshstart
  980. coroutine.wrap(function()
  981. for i=0,1,factor do
  982. swait()
  983. if inverse == true then
  984. p.Transparency = 1-i
  985. else
  986. p.Transparency = i
  987. end
  988. m.Scale = m.Scale + meshadd
  989. end
  990. p:Destroy()
  991. end)()
  992. return p
  993. end,
  994.  
  995. Meshed = function(cf,meshstart,meshadd,colour,meshid,textid,spin,inverse,factor)
  996. local p = Instance.new("Part",EffectModel)
  997. p.BrickColor = BrickColor.new(colour)
  998. p.Size = Vector3.new()
  999. p.Anchored = true
  1000. p.CanCollide = false
  1001. p.CFrame = cf
  1002. if inverse == true then
  1003. p.Transparency = 1
  1004. else
  1005. p.Transparency = 0
  1006. end
  1007. local m = Instance.new("SpecialMesh",p)
  1008. m.MeshId = meshid
  1009. m.TextureId = textid
  1010. m.Scale = meshstart
  1011. coroutine.wrap(function()
  1012. for i=0,1,factor do
  1013. swait()
  1014. if inverse == true then
  1015. p.Transparency = 1-i
  1016. else
  1017. p.Transparency = i
  1018. end
  1019. m.Scale = m.Scale + meshadd
  1020. p.CFrame = p.CFrame * CFrame.Angles(0,math.rad(spin),0)
  1021. end
  1022. p:Destroy()
  1023. end)()
  1024. return p
  1025. end,
  1026.  
  1027. Explode = function(cf,partsize,meshstart,meshadd,matr,colour,move,inverse,factor)
  1028. local p = Instance.new("Part",EffectModel)
  1029. p.BrickColor = BrickColor.new(colour)
  1030. p.Size = partsize
  1031. p.Anchored = true
  1032. p.CanCollide = false
  1033. p.Material = matr
  1034. p.CFrame = cf * CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  1035. if inverse == true then
  1036. p.Transparency = 1
  1037. else
  1038. p.Transparency = 0
  1039. end
  1040. local m = Instance.new("SpecialMesh",p)
  1041. m.MeshType = "Sphere"
  1042. m.Scale = meshstart
  1043. coroutine.wrap(function()
  1044. for i=0,1,factor do
  1045. swait()
  1046. if inverse == true then
  1047. p.Transparency = 1-i
  1048. else
  1049. p.Transparency = i
  1050. end
  1051. m.Scale = m.Scale + meshadd
  1052. p.CFrame = p.CFrame * CFrame.new(0,move,0)
  1053. end
  1054. p:Destroy()
  1055. end)()
  1056. return p
  1057. end,
  1058.  
  1059. }
  1060.  
  1061. function chatfunc(text)
  1062. coroutine.wrap(function()
  1063. if chara:FindFirstChild("TalkingBillBoard")~= nil then
  1064. chara:FindFirstChild("TalkingBillBoard"):destroy()
  1065. end
  1066. local naeeym2 = Instance.new("BillboardGui",chara)
  1067. naeeym2.Size = UDim2.new(0,100,0,40)
  1068. naeeym2.StudsOffset = Vector3.new(0,3,0)
  1069. naeeym2.Adornee = chara.Head
  1070. naeeym2.Name = "BLABLABLA"
  1071. local tecks2 = Instance.new("TextLabel",naeeym2)
  1072. tecks2.BackgroundTransparency = 1
  1073. tecks2.BorderSizePixel = 0
  1074. tecks2.Text = ""
  1075. tecks2.Font = "Antique"
  1076. tecks2.FontSize = "Size24"
  1077. tecks2.TextStrokeTransparency = 0
  1078. tecks2.TextColor3 = Color3.new(0,0,0)
  1079. tecks2.TextStrokeColor3 = Color3.new(1,0,0)
  1080. tecks2.Size = UDim2.new(1,0,0.5,0)coroutine.wrap(function()
  1081. while tecks2 ~= nil do
  1082. swait()
  1083. tecks2.Position = UDim2.new(0,math.random(-3,3),0,math.random(-3,3))
  1084. end
  1085. end)()
  1086. for i = 1,string.len(text),1 do
  1087. tecks2.Text = string.sub(text,1,i)
  1088. swait()
  1089. end
  1090. swait(30)
  1091. for i = 1, 5 do
  1092. swait()
  1093. tecks2.Position = tecks2.Position - UDim2.new(0,0,.05,0)
  1094. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.2
  1095. tecks2.TextTransparency = tecks2.TextTransparency + .2
  1096. end
  1097. naeeym2:Destroy()
  1098. end)()
  1099. end
  1100.  
  1101. function GetDudesTorso(c)
  1102. local torsy = (c:findFirstChild("Torso") or c:findFirstChild("UpperTorso"))
  1103. if torsy ~= nil then
  1104. return torsy
  1105. end
  1106. end
  1107.  
  1108. function BodyVel(part,faws)
  1109. local bodyvel = Instance.new("BodyVelocity",part)
  1110. local pep = 10000000
  1111. bodyvel.P = pep
  1112. bodyvel.MaxForce = Vector3.new(pep,pep,pep)
  1113. bodyvel.Velocity = faws
  1114. debby:AddItem(bodyvel,.2)
  1115. end
  1116.  
  1117. function Dmg(dude,dmg,env,faws,trip,efftyp,toim)
  1118. if dude and dude ~= chara and dude.Name ~= "CKbackup" and dude.Name ~= "Nebula_Zorua" and dude.Name ~= "Salvo_Starly" then
  1119. if dude:FindFirstChild("HITO") then return end
  1120. local debounce = Instance.new("BoolValue",dude)
  1121. debounce.Name = "HITO"
  1122. debby:AddItem(debounce,toim)
  1123. local hum = dude:FindFirstChildOfClass("Humanoid")
  1124. local dam = dmg+math.random(-env,env)
  1125. local teksu = "-"..dam
  1126. if hum then
  1127. local finhel = hum.Health - dam
  1128. if finhel <= 0 and dude:FindFirstChild("DEATHED")==nil then
  1129. Instance.new("BoolValue",dude).Name = "DEATHED"
  1130. local soaa = Instance.new("Sound",dude.Head)
  1131. local cho = math.random(1,5)
  1132. if cho == 1 then
  1133. soaa.SoundId = "rbxassetid://111896685"
  1134. elseif cho == 2 then
  1135. soaa.SoundId = "rbxassetid://535528169"
  1136. elseif cho == 3 then
  1137. soaa.SoundId = "rbxassetid://1080363252"
  1138. elseif cho == 4 then
  1139. soaa.SoundId = "rbxassetid://147758746"
  1140. elseif cho == 5 then
  1141. soaa.SoundId = "rbxassetid://626777433"
  1142. soaa.Volume = .2
  1143. soaa.TimePosition = 1
  1144. end
  1145. game:service'Debris':AddItem(soaa,6)
  1146. soaa:Play()
  1147. end
  1148. hum.Health = hum.Health - dam
  1149. end
  1150. coroutine.wrap(function()
  1151. local naeeym2 = Instance.new("BillboardGui",dude)
  1152. naeeym2.Size = UDim2.new(0,100,0,40)
  1153. naeeym2.StudsOffset = Vector3.new(0,3,0)
  1154. naeeym2.Adornee = dude:FindFirstChild("Head")
  1155. naeeym2.Name = "TalkingBillBoard"
  1156. local tecks2 = Instance.new("TextLabel",naeeym2)
  1157. tecks2.BackgroundTransparency = 1
  1158. tecks2.BorderSizePixel = 0
  1159. tecks2.Text = teksu
  1160. tecks2.Font = "Antique"
  1161. tecks2.TextSize = 24
  1162. tecks2.TextStrokeTransparency = 0
  1163. tecks2.TextColor3 = Color3.new(0,0,0)
  1164. tecks2.TextStrokeColor3 = Color3.new(1,0,0)
  1165. tecks2.Size = UDim2.new(1,0,0.5,0)
  1166. swait(10)
  1167. for i = 0,1,.05 do
  1168. swait()
  1169. tecks2.Position = tecks2.Position - UDim2.new(0,0,.005,0)
  1170. tecks2.TextStrokeTransparency = i
  1171. tecks2.TextTransparency = i
  1172. end
  1173. naeeym2:Destroy()
  1174. end)()
  1175. local torsy = GetDudesTorso(dude)
  1176. if torsy then
  1177. for i=1,dam/5 do
  1178. local blp = Instance.new("Part",EffectModel)
  1179. blp.Size = Vector3.new(.3,.3,.3)
  1180. blp.BrickColor = BrickColor.new("Crimson")
  1181. blp.CFrame = torsy.CFrame
  1182. blp.Velocity = torsy.CFrame.lookVector*5
  1183. coroutine.wrap(function()
  1184. swait(10)
  1185. blp.Orientation = Vector3.new(0,blp.Orientation.y,0)
  1186. for i=0,1,.1 do
  1187. swait()
  1188. blp.Transparency = i
  1189. blp.Size = blp.Size + Vector3.new(.02,-.02,.02)
  1190. end
  1191. blp:Destroy()
  1192. end)()
  1193. end
  1194. if efftyp == "Blunt" then
  1195. puncheff(torsy)
  1196. elseif efftyp == "Sharp" then
  1197. slasheff(torsy)
  1198. end
  1199. if faws ~= 0 then
  1200. BodyVel(torsy,faws)
  1201. end
  1202. if trip == true then
  1203. torsy.CFrame = torsy.CFrame * CFrame.Angles(math.rad(-90),0,0)
  1204. torsy.RotVelocity = Vector3.new(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1205. end
  1206. end
  1207. end
  1208. end
  1209.  
  1210. function MagnitudeDmg(par,magni,dmg,env,faws,trip,efftyp,toim)
  1211. for _, c in pairs(workspace:GetDescendants()) do
  1212. local hum = c:FindFirstChildOfClass("Humanoid")
  1213. if hum ~= nil and c:FindFirstChild("IsTeamMateOfCK")==nil and c.Name ~= "CKbackup" and c.Name ~= "Nebula_Zorua" and c.Name ~= "Salvo_Starly" then
  1214. local head = GetDudesTorso(c)
  1215. if head ~= nil then
  1216. local targ = head.Position - par.Position
  1217. local mag = targ.magnitude
  1218. if magni >= mag and c ~= chara then
  1219. Dmg(c,dmg,env,faws,trip,efftyp,toim)
  1220. end
  1221. end
  1222. end
  1223. end
  1224. end
  1225.  
  1226. function puncheff(par)
  1227. if par.Parent:FindFirstChild("DebounceHit")==nil then
  1228. so(386946017,par,math.random(80,120)/100,1)
  1229. Effects.Sphere(par.CFrame,Vector3.new(1,1,1),Vector3.new(1,1,1),Vector3.new(2,2,2),"Neon","White",false,.1)
  1230. end
  1231. end
  1232.  
  1233. function slasheff(par)
  1234. if par.Parent:FindFirstChild("DebounceHit")==nil then
  1235. local cho = math.random(1,3)
  1236. if cho == 1 then
  1237. so(444667824,par,1,1)
  1238. elseif cho == 2 then
  1239. so(444667844,par,1,1)
  1240. elseif cho == 3 then
  1241. so(444667859,par,1,1)
  1242. end
  1243. --function(cf,partsize,meshstart,meshadd,matr,colour,factor)
  1244. Effects.Sphere(par.CFrame*CFrame.Angles(math.random(0,360),math.random(0,360),math.random(0,360)),Vector3.new(.5,.5,.5),Vector3.new(1,0,1),Vector3.new(0,5,0),"Neon","Really red",false,.1)
  1245. end
  1246. end
  1247.  
  1248. local mus = Instance.new("Sound",Head)
  1249. mus.Name = "mus"
  1250. mus.SoundId = "rbxassetid://581195737"
  1251. mus.Looped = true
  1252. mus.Volume = 1
  1253. mus:Play()
  1254.  
  1255. coroutine.wrap(function()
  1256. chatfunc("I'm tired of all of this crap..")
  1257. swait(90)
  1258. chatfunc("Now the day of reckoning has begun..")
  1259. swait(90)
  1260. chatfunc("This shall be my finest hour..")
  1261. swait(90)
  1262. chatfunc("ICH BIN GOTT! BERZERKER!")
  1263. end)()
  1264.  
  1265. function smek()
  1266. attack = true
  1267. Humanoid.WalkSpeed = 16
  1268. for i=0,1,.1 do
  1269. swait()
  1270. PlayAnimationFromTable({
  1271. CFrame.new(0.0506498702, -5.11459177e-07, -0.0829713419, 0.76604414, 0, 0.642788053, -2.68192082e-07, 1.00000834, 3.19618522e-07, -0.642793417, -4.17232513e-07, 0.766050518),
  1272. CFrame.new(0.0446723551, 1.46553934, 0.0211830139, 0.735023618, 0.242944986, -0.633023083, -0.171009988, 0.969846427, 0.173647657, 0.656122029, -0.0193818808, 0.754406095),
  1273. CFrame.new(1.40946591, -0.0135071278, 0, 1.00000012, 0, 0, 0, 1, 0, 0, 0, 1.00000012),
  1274. CFrame.new(-1.55299187, 0.416839302, -0.457236975, 0.68952775, 0.492403448, -0.53112185, -0.633021951, 0.766044736, -0.11161866, 0.35190171, 0.413175911, 0.839911342),
  1275. CFrame.new(0.499983132, -2.00001597, -9.13441181e-06, 0.76604414, 0, -0.642788053, 0, 1, 0, 0.642788053, 0, 0.76604414),
  1276. CFrame.new(-0.500005186, -2.00001597, -1.22189522e-06, 0.98480773, 0, 0.173648447, 0, 1, 0, -0.173648447, 0, 0.98480773),
  1277. }, .3, false)
  1278. end
  1279. Humanoid.WalkSpeed = 2
  1280. tr1.Enabled = true
  1281. so(536642316,Naifu,1,1)
  1282. for i=0,1.4,.2 do
  1283. swait()
  1284. PlayAnimationFromTable({
  1285. CFrame.new(0.0327370502, 1.24810251e-09, 0.00299140904, 0.64278698, 0, -0.766044974, 3.19616191e-07, 1, 2.68189382e-07, 0.766044974, -4.17229018e-07, 0.64278698),
  1286. CFrame.new(-0.0331632644, 1.46557713, -0.11364907, 0.656121135, -0.0193833038, 0.754413188, -0.171011418, 0.969854534, 0.173649102, -0.735024333, -0.24294585, 0.633027315),
  1287. CFrame.new(1.24921072, -0.104290992, 0.29409039, 0.93969059, 0.26200676, 0.21985054, -0.342026025, 0.719844162, 0.604022086, -2.68220901e-07, -0.642788291, 0.766043901),
  1288. CFrame.new(-0.663761616, 0.985711455, -0.487553686, 0.383021712, -0.64278698, -0.663414836, -0.866025984, 0, -0.499998987, 0.321392834, 0.766044974, -0.556670249),
  1289. CFrame.new(0.500005841, -2.00003386, -4.52250242e-06, 0.984807551, 0, -0.173649341, 0, 1, 0, 0.173649341, 0, 0.984807551),
  1290. CFrame.new(-0.499993563, -2.00003386, -1.44541264e-06, 0.64278698, 0, 0.766044974, 0, 1, 0, -0.766044974, 0, 0.64278698),
  1291. }, .5, false)
  1292. MagnitudeDmg(Naifu,3,40,3,RootPart.CFrame.lookVector*5,false,"Sharp",.5)
  1293. end
  1294. swait(5)
  1295. Humanoid.WalkSpeed = 8
  1296. tr1.Enabled = false
  1297. attack = false
  1298. end
  1299.  
  1300. zhold = true
  1301. function shoot()
  1302. attack = true
  1303. so(169799883,TEC9,1,1)
  1304. for i=0,1,.1 do
  1305. swait()
  1306. PlayAnimationFromTable({
  1307. CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  1308. CFrame.new(0.0838357508, 1.42719412, -0.166348219, 0.857789159, 0.297403604, -0.419224113, -0.141315028, 0.920631945, 0.363959879, 0.49419412, -0.252958179, 0.83173573),
  1309. CFrame.new(1.22406256, -0.130654663, 0.277106255, 0.941511214, 0.33170712, 0.0593906641, -0.33170709, 0.881204426, 0.336822212, 0.0593910143, -0.336822152, 0.939693391),
  1310. CFrame.new(-1.43159902, 0, 0.187939197, 0.939692736, 0, 0.342019886, 0, 1, 0, -0.342019916, 0, 0.939692736),
  1311. CFrame.new(0.499998897, -1.99999988, -1.49011612e-06, 0.939692736, 0, -0.342019886, 0, 1, 0, 0.342019916, 0, 0.939692736),
  1312. CFrame.new(-0.500001848, -1.99999988, 1.62422657e-06, 0.939692736, 0, 0.342019886, 0, 1, 0, -0.342019916, 0, 0.939692736),
  1313. }, .3, false)
  1314. end
  1315. Humanoid.WalkSpeed = 2
  1316. local ref = Instance.new("Part",chara)
  1317. ref.Size = Vector3.new(0,0,0)
  1318. ref.Anchored = true
  1319. ref.CanCollide = false
  1320. ref.Transparency = 1
  1321. TEC9.Transparency = 0
  1322. for i=0,1,.1 do
  1323. swait()
  1324. PlayAnimationFromTable({
  1325. CFrame.new(-0.0438226089, 0, -0.0217384323, 0.939692736, 0, 0.342019886, 0, 1, 0, -0.342019916, 0, 0.939692736),
  1326. CFrame.new(0.0674266815, 1.48262143, -0.0571227223, 0.939692736, 0.0593910702, -0.33682391, 0, 0.984807849, 0.173647985, 0.342019886, -0.163175747, 0.925416768),
  1327. CFrame.new(1.62663007, 0.722141325, -0.273156077, 0.883022428, -0.342019916, 0.321393609, 0.342019916, 0, -0.939692736, 0.321393609, 0.939692736, 0.116977602),
  1328. CFrame.new(-1.34998989, 0, 0.259806901, 0.866024911, 0, 0.500000954, 0, 1, 0, -0.500000954, 0, 0.866024852),
  1329. CFrame.new(0.499997795, -1.99999917, -1.51991844e-06, 0.866025686, 0, -0.499999642, 0, 1, 0, 0.499999642, 0, 0.866025686),
  1330. CFrame.new(-0.500000119, -1.99999917, 1.50501728e-06, 0.939692438, 0, 0.342020929, 0, 1, 0, -0.342020959, 0, 0.939692438),
  1331. }, .3, false)
  1332. end
  1333. swait(5)
  1334. local shots = 20
  1335. repeat
  1336. so(745308042,TEC9,1,1)
  1337. ref.CFrame = Mouse.Hit
  1338. MagnitudeDmg(ref,2,12,2,RootPart.CFrame.lookVector*3,false,"Shot",.1)
  1339. local hitpt = Instance.new("Part",EffectModel)
  1340. hitpt.Size = Vector3.new(0,0,.3)
  1341. hitpt.CFrame = TEC9.CFrame * CFrame.new(0,.465,.1)-- * CFrame.Angles(math.rad(90),0,0)
  1342. hitpt.Velocity = RootPart.CFrame.rightVector*10+Vector3.new(0,5,0)
  1343. local hitm = Instance.new("SpecialMesh",hitpt)
  1344. hitm.MeshId = "rbxassetid://94295100"
  1345. hitm.TextureId = "rbxassetid://94287792"
  1346. hitm.Scale = Vector3.new(3,3,3.5)
  1347. coroutine.wrap(function()
  1348. swait(30)
  1349. for i = 0,1,.1 do
  1350. swait()
  1351. hitpt.Transparency = i
  1352. end
  1353. hitpt:Destroy()
  1354. end)()
  1355. Effects.Block(TEC9.CFrame*CFrame.new(-.05,.465,-.9),Vector3.new(1,1,1),Vector3.new(),Vector3.new(.1,.1,.1),"Neon","Bright yellow",true,false,.1)
  1356. shots = shots - 1
  1357. for i=0,1 do
  1358. swait()
  1359. PlayAnimationFromTable({
  1360. CFrame.new(-0.0438226089, 0, -0.0217384323, 0.939692736, 0, 0.342019886, 0, 1, 0, -0.342019916, 0, 0.939692736),
  1361. CFrame.new(0.0674266815, 1.48262143, -0.0571227223, 0.939692736, 0.0593910702, -0.33682391, 0, 0.984807849, 0.173647985, 0.342019886, -0.163175747, 0.925416768),
  1362. CFrame.new(1.62663007, 0.722141325, -0.273156077, 0.883022428, -0.342019916, 0.321393609, 0.342019916, 0, -0.939692736, 0.321393609, 0.939692736, 0.116977602)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),
  1363. CFrame.new(-1.34998989, 0, 0.259806901, 0.866024911, 0, 0.500000954, 0, 1, 0, -0.500000954, 0, 0.866024852),
  1364. CFrame.new(0.499997795, -1.99999917, -1.51991844e-06, 0.866025686, 0, -0.499999642, 0, 1, 0, 0.499999642, 0, 0.866025686),
  1365. CFrame.new(-0.500000119, -1.99999917, 1.50501728e-06, 0.939692438, 0, 0.342020929, 0, 1, 0, -0.342020959, 0, 0.939692438),
  1366. }, .3, false)
  1367. end
  1368. until zhold == false or shots == 0
  1369. swait(5)
  1370. ref:Destroy()
  1371. for i=0,1,.25 do
  1372. swait()
  1373. PlayAnimationFromTable({
  1374. CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  1375. CFrame.new(0, 1.44842434, -0.192443371, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736),
  1376. CFrame.new(1.39502811, 0.908103704, 0.515749812, -0.213331953, -0.84539932, -0.489683062, 0.875778735, 0.056671422, -0.479374528, 0.433013916, -0.531119943, 0.728292942),
  1377. CFrame.new(-1.5091548, 0.323206276, -0.384231716, 0.750000238, 0.433013409, -0.499999136, -0.500000179, 0.866025388, 6.10661004e-07, 0.433012158, 0.249999225, 0.866025925),
  1378. CFrame.new(0.50000149, -1.99999857, -2.11596489e-06, 0.984807849, 0, -0.173647985, 0, 1, 0, 0.173647985, 0, 0.984807849),
  1379. CFrame.new(-0.500000834, -1.99999857, 1.63912773e-06, 0.984807849, 0, 0.173647985, 0, 1, 0, -0.173647985, 0, 0.984807849),
  1380. }, .4, false)
  1381. end
  1382. so(1159825801,TEC9,1,1)
  1383. swait(15)
  1384. so(211134014,TEC9,1,1)
  1385. for i=0,1,.1 do
  1386. swait()
  1387. PlayAnimationFromTable({
  1388. CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  1389. CFrame.new(0.0838357508, 1.42719412, -0.166348219, 0.857789159, 0.297403604, -0.419224113, -0.141315028, 0.920631945, 0.363959879, 0.49419412, -0.252958179, 0.83173573),
  1390. CFrame.new(1.22406256, -0.130654663, 0.277106255, 0.941511214, 0.33170712, 0.0593906641, -0.33170709, 0.881204426, 0.336822212, 0.0593910143, -0.336822152, 0.939693391),
  1391. CFrame.new(-1.43159902, 0, 0.187939197, 0.939692736, 0, 0.342019886, 0, 1, 0, -0.342019916, 0, 0.939692736),
  1392. CFrame.new(0.499998897, -1.99999988, -1.49011612e-06, 0.939692736, 0, -0.342019886, 0, 1, 0, 0.342019916, 0, 0.939692736),
  1393. CFrame.new(-0.500001848, -1.99999988, 1.62422657e-06, 0.939692736, 0, 0.342019886, 0, 1, 0, -0.342019916, 0, 0.939692736),
  1394. }, .3, false)
  1395. end
  1396. TEC9.Transparency = 1
  1397. Humanoid.WalkSpeed = 8
  1398. attack = false
  1399. end
  1400.  
  1401. function dbshoot()
  1402. attack = true
  1403. so(169799883,DBarrel,1,1)
  1404. for i=0,1,.1 do
  1405. swait()
  1406. PlayAnimationFromTable({
  1407. CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  1408. CFrame.new(0.0838357508, 1.42719412, -0.166348219, 0.857789159, 0.297403604, -0.419224113, -0.141315028, 0.920631945, 0.363959879, 0.49419412, -0.252958179, 0.83173573),
  1409. CFrame.new(1.22406256, -0.130654663, 0.277106255, 0.941511214, 0.33170712, 0.0593906641, -0.33170709, 0.881204426, 0.336822212, 0.0593910143, -0.336822152, 0.939693391),
  1410. CFrame.new(-1.43159902, 0, 0.187939197, 0.939692736, 0, 0.342019886, 0, 1, 0, -0.342019916, 0, 0.939692736),
  1411. CFrame.new(0.499998897, -1.99999988, -1.49011612e-06, 0.939692736, 0, -0.342019886, 0, 1, 0, 0.342019916, 0, 0.939692736),
  1412. CFrame.new(-0.500001848, -1.99999988, 1.62422657e-06, 0.939692736, 0, 0.342019886, 0, 1, 0, -0.342019916, 0, 0.939692736),
  1413. }, .3, false)
  1414. end
  1415. Humanoid.WalkSpeed = 2
  1416. DBarrel.Transparency = 0
  1417. for i=0,1,.1 do
  1418. swait()
  1419. PlayAnimationFromTable({
  1420. CFrame.new(0, 0.0149096567, 0.133909225, 1, 0, 0, 0, 0.984807849, -0.173647985, 0, 0.173647985, 0.984807849),
  1421. CFrame.new(0, 1.43158329, -0.187937319, 1, 0, 0, 0, 0.939692855, 0.342019796, 0, -0.342019796, 0.939692855),
  1422. CFrame.new(1.0840646, 0.399937928, -0.718070745, 0.868691146, 0.495353371, 0.000888805604, -0.0877529308, 0.15565595, -0.983905911, -0.487519473, 0.854632378, 0.17868565),
  1423. CFrame.new(-1.35562694, -0.0255649146, 0.396688521, 0.939692378, -0.116977789, 0.321394831, -2.60770321e-07, 0.939692855, 0.342019856, -0.342021167, -0.321393549, 0.883021951),
  1424. CFrame.new(0.499995321, -2.00755072, 0.218008161, 0.939692736, 0, -0.342019886, 0.0593910702, 0.984807849, 0.163175747, 0.33682391, -0.173647985, 0.925416768),
  1425. CFrame.new(-0.499996126, -2.00755, 0.218011439, 0.939692736, 0, 0.342019886, -0.0593910702, 0.984807849, 0.163175747, -0.33682391, -0.173647985, 0.925416768),
  1426. }, .3, false)
  1427. end
  1428. swait(5)
  1429. so(132455829,DBarrel,1,1)
  1430. local ref = Instance.new("Part",chara)
  1431. ref.Size = Vector3.new(0,0,0)
  1432. ref.Anchored = true
  1433. ref.CanCollide = false
  1434. ref.Transparency = 1
  1435. ref.CFrame = RootPart.CFrame*CFrame.new(0,0,-6)
  1436. MagnitudeDmg(ref,4,100,0,RootPart.CFrame.lookVector*12,true,"Shot",.1)
  1437. Effects.Block(DBarrel.CFrame*CFrame.new(.1,.3,1.1),Vector3.new(1,1,1),Vector3.new(),Vector3.new(.1,.1,.1),"Neon","Bright yellow",true,false,.05)
  1438. Effects.Block(DBarrel.CFrame*CFrame.new(-.1,.3,1.1),Vector3.new(1,1,1),Vector3.new(),Vector3.new(.1,.1,.1),"Neon","Bright yellow",true,false,.05)
  1439. ref:Destroy()
  1440. for i=0,1,.1 do
  1441. swait()
  1442. PlayAnimationFromTable({
  1443. CFrame.new(0, 0.0149102025, 0.133909985, 1, 0, 0, 0, 0.984812796, -0.173648849, 0, 0.173648849, 0.984812796),
  1444. CFrame.new(0, 1.43158948, 0.0120660895, 1, 0, 0, 0, 1.00000262, -1.1920929e-07, 0, 1.1920929e-07, 1.00000262),
  1445. CFrame.new(1.20370889, 0.765974879, -0.570772648, 0.868689418, 0.319091678, -0.378892303, -0.0877506882, -0.653664529, -0.751683295, -0.48752436, 0.686227262, -0.539830863),
  1446. CFrame.new(-1.49794042, 0.21531868, 0.355185598, 0.923031092, 0.211469814, 0.321394384, -0.321394086, 0.883024752, 0.342021078, -0.211472049, -0.418990374, 0.883024335),
  1447. CFrame.new(0.499998927, -2.00757003, 0.218012124, 0.939692736, 0, -0.342019886, 0.0593913682, 0.984812796, 0.163176581, 0.336825609, -0.173648849, 0.925421476),
  1448. CFrame.new(-0.500004649, -2.00756979, 0.218013197, 0.939692736, 0, 0.342019886, -0.0593913682, 0.984812796, 0.163176581, -0.336825609, -0.173648849, 0.925421476),
  1449. }, .3, false)
  1450. end
  1451. swait(10)
  1452. for i=0,1,.25 do
  1453. swait()
  1454. PlayAnimationFromTable({
  1455. CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  1456. CFrame.new(0, 1.44842434, -0.192443371, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736),
  1457. CFrame.new(1.39502811, 0.908103704, 0.515749812, -0.213331953, -0.84539932, -0.489683062, 0.875778735, 0.056671422, -0.479374528, 0.433013916, -0.531119943, 0.728292942),
  1458. CFrame.new(-1.5091548, 0.323206276, -0.384231716, 0.750000238, 0.433013409, -0.499999136, -0.500000179, 0.866025388, 6.10661004e-07, 0.433012158, 0.249999225, 0.866025925),
  1459. CFrame.new(0.50000149, -1.99999857, -2.11596489e-06, 0.984807849, 0, -0.173647985, 0, 1, 0, 0.173647985, 0, 0.984807849),
  1460. CFrame.new(-0.500000834, -1.99999857, 1.63912773e-06, 0.984807849, 0, 0.173647985, 0, 1, 0, -0.173647985, 0, 0.984807849),
  1461. }, .4, false)
  1462. end
  1463. for i=1,2 do
  1464. so(1159825801,DBarrel,1,1)
  1465. local hitpt = Instance.new("Part",EffectModel)
  1466. hitpt.Size = Vector3.new(0,0,.3)
  1467. hitpt.CFrame = TEC9.CFrame * CFrame.Angles(math.rad(90),0,0)
  1468. hitpt.Velocity = RootPart.CFrame.rightVector*10+Vector3.new(0,5,0)
  1469. local hitm = Instance.new("SpecialMesh",hitpt)
  1470. hitm.MeshId = "rbxassetid://94248124"
  1471. hitm.TextureId = "rbxassetid://94219470"
  1472. hitm.Scale = Vector3.new(1.2,1.2,1.2)
  1473. coroutine.wrap(function()
  1474. swait(30)
  1475. for i = 0,1,.1 do
  1476. swait()
  1477. hitpt.Transparency = i
  1478. end
  1479. hitpt:Destroy()
  1480. end)()
  1481. swait()
  1482. end
  1483. swait(15)
  1484. so(211134014,DBarrel,1,1)
  1485. for i=0,1,.1 do
  1486. swait()
  1487. PlayAnimationFromTable({
  1488. CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  1489. CFrame.new(0.0838357508, 1.42719412, -0.166348219, 0.857789159, 0.297403604, -0.419224113, -0.141315028, 0.920631945, 0.363959879, 0.49419412, -0.252958179, 0.83173573),
  1490. CFrame.new(1.22406256, -0.130654663, 0.277106255, 0.941511214, 0.33170712, 0.0593906641, -0.33170709, 0.881204426, 0.336822212, 0.0593910143, -0.336822152, 0.939693391),
  1491. CFrame.new(-1.43159902, 0, 0.187939197, 0.939692736, 0, 0.342019886, 0, 1, 0, -0.342019916, 0, 0.939692736),
  1492. CFrame.new(0.499998897, -1.99999988, -1.49011612e-06, 0.939692736, 0, -0.342019886, 0, 1, 0, 0.342019916, 0, 0.939692736),
  1493. CFrame.new(-0.500001848, -1.99999988, 1.62422657e-06, 0.939692736, 0, 0.342019886, 0, 1, 0, -0.342019916, 0, 0.939692736),
  1494. }, .3, false)
  1495. end
  1496. DBarrel.Transparency = 1
  1497. Humanoid.WalkSpeed = 8
  1498. attack = false
  1499. end
  1500.  
  1501. Mouse.Button1Down:connect(function()
  1502. if attack == false then
  1503. smek()
  1504. end
  1505. end)
  1506.  
  1507. local sprintt = 0
  1508. Mouse.KeyDown:connect(function(k)
  1509. k = k:lower()
  1510. if k=='m' then
  1511. if mus.IsPlaying == true then
  1512. mus:Stop()
  1513. elseif mus.IsPaused == true then
  1514. mus:Play()
  1515. end
  1516. end
  1517. if attack == false then
  1518. if k == 'z' then
  1519. zhold = true
  1520. shoot()
  1521. elseif k == 'x' then
  1522. dbshoot()
  1523. end
  1524. end
  1525. end)
  1526.  
  1527. Mouse.KeyUp:connect(function(k)
  1528. k = k:lower()
  1529. if k == 'z' then
  1530. zhold = false
  1531. end
  1532. end)
  1533.  
  1534. coroutine.wrap(function()
  1535. while 1 do
  1536. swait()
  1537. if doe <= 360 then
  1538. doe = doe + 2
  1539. else
  1540. doe = 0
  1541. end
  1542. end
  1543. end)()
  1544. while true do
  1545. swait()
  1546. while true do
  1547. swait()
  1548. if Head:FindFirstChild("mus")==nil then
  1549. mus = Instance.new("Sound",Head)
  1550. mus.Name = "mus"
  1551. mus.SoundId = "rbxassetid://581195737"
  1552. mus.Looped = true
  1553. mus.Volume = 1
  1554. mus:Play()
  1555. end
  1556. if sprintt >= 1 then
  1557. sprintt = sprintt - 1
  1558. end
  1559. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  1560. velocity = RootPart.Velocity.y
  1561. sine = sine + change
  1562. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, chara)
  1563. if RootPart.Velocity.y > 1 and hit == nil then
  1564. Anim = "Jump"
  1565. if attack == false then
  1566. PlayAnimationFromTable({
  1567. CFrame.new(0, 0.0382082276, -0.0403150208, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),
  1568. CFrame.new(0, 1.46579528, 0.0939689279, 1, 0, 0, 0, 0.939692855, -0.342019796, 0, 0.342019796, 0.939692855),
  1569. CFrame.new(1.20945489, -0.213504896, 3.55388607e-07, 0.939692736, 0.342019916, 1.53461215e-07, -0.342019945, 0.939692736, 1.93715096e-07, -8.56816769e-08, -2.23517418e-07, 1.00000012),
  1570. CFrame.new(-1.20945573, -0.213503733, 5.0439985e-07, 0.939692736, -0.342019916, -1.53461215e-07, 0.342019945, 0.939692736, 1.93715096e-07, 8.56816769e-08, -2.23517418e-07, 1.00000012),
  1571. CFrame.new(0.5, -1.99739456, -0.0180913229, 1, 0, 0, 0, 1.00000012, 0, 0, 0, 1.00000012),
  1572. CFrame.new(-0.5, -1.30000103, -0.39999947, 1, 0, 0, 0, 0.939692676, 0.342020601, 0, -0.342020601, 0.939692676),
  1573. }, .3, false)
  1574. end
  1575. elseif RootPart.Velocity.y < -1 and hit == nil then
  1576. Anim = "Fall"
  1577. if attack == false then
  1578. PlayAnimationFromTable({
  1579. CFrame.new(0, -0.0646628663, 0.0399149321, 1, 0, 0, 0, 0.984807849, -0.173647985, 0, 0.173647985, 0.984807849),
  1580. CFrame.new(0, 1.4913609, -0.128171027, 1, 0, 0, 0, 0.939692855, 0.342019796, 0, -0.342019796, 0.939692855),
  1581. CFrame.new(1.55285025, 0.466259956, -9.26282269e-08, 0.766043842, -0.642788351, -6.46188241e-08, 0.642788291, 0.766043961, -7.4505806e-08, 1.04308128e-07, 1.49011612e-08, 1.00000012),
  1582. CFrame.new(-1.5605253, 0.475036323, -2.10609159e-07, 0.766043842, 0.642788351, 6.46188241e-08, -0.642788291, 0.766043961, -7.4505806e-08, -1.04308128e-07, 1.49011612e-08, 1.00000012),
  1583. CFrame.new(0.500000954, -1.9973948, -0.0180922765, 1, 0, 0, 0, 1.00000012, 0, 0, 0, 1.00000012),
  1584. CFrame.new(-0.499999046, -1.30000043, -0.400000483, 1, 0, 0, 0, 0.939692855, 0.342019796, 0, -0.342019796, 0.939692855),
  1585. }, .3, false)
  1586. end
  1587. elseif Torsovelocity < 1 and hit ~= nil then
  1588. Anim = "Idle"
  1589. if attack == false then
  1590. change = 1
  1591. PlayAnimationFromTable({
  1592. CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0,.05 * math.cos((sine)/10), 0),
  1593. CFrame.new(0, 1.48262823, -0.0984786302, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),
  1594. CFrame.new(1.20945334, -0.213505104, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736, 0, 0, 0, 1),
  1595. CFrame.new(-1.37076354, 0, -0.304326713, 0.866025388, 0, -0.500000238, 0, 1, 0, 0.500000238, 0, 0.866025388),
  1596. CFrame.new(0.499997705, -2, -2.77906656e-06, 0.984807849, 0, -0.173647985, 0, 1, 0, 0.173647985, 0, 0.984807849) * CFrame.new(0,-.05 * math.cos((sine)/10), 0),
  1597. CFrame.new(-0.50000149, -2, -2.11596489e-06, 0.984807849, 0, 0.173647985, 0, 1, 0, -0.173647985, 0, 0.984807849) * CFrame.new(0,-.05 * math.cos((sine)/10), 0),
  1598. }, .3, false)
  1599. end
  1600. elseif Torsovelocity > 2 and hit ~= nil then
  1601. Anim = "Walk"
  1602. if attack == false then
  1603. Humanoid.WalkSpeed = 8
  1604. PlayAnimationFromTable({
  1605. CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0- .08 * math.cos((sine) / 5), 0) * CFrame.Angles(0, 0, 0),
  1606. CFrame.new(0, 1.48263013, -0.0984808952, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),
  1607. CFrame.new(1.5, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, -.5 * math.cos((sine) / 10)) * CFrame.Angles(math.rad(0 + 30 * math.cos((sine) / 10)), 0, 0),
  1608. CFrame.new(-1.37076354, 0, -0.304326713, 0.866025388, 0, -0.500000238, 0, 1, 0, 0.500000238, 0, 0.866025388),
  1609. CFrame.new(0.540300786, -1.99793816, -9.82598067e-07, 0.998698533, -0.0510031395, 6.36324955e-07, 0.0510031395, 0.998698533, -1.00461093e-05, -8.35937328e-08, 1.08393433e-05, 1.00000024) * CFrame.new(0, 0, 0+ .5 * math.cos((sine) / 10)) * CFrame.Angles(math.rad(0 - 30 * math.cos((sine) / 10)), 0, 0),
  1610. CFrame.new(-0.539563596, -1.99794078, 1.12228372e-06, 0.998635888, 0.0523072146, -1.77852357e-07, -0.0523072146, 0.998635888, -1.00715051e-05, -3.89727461e-07, 1.08406466e-05, 1.00000024) * CFrame.new(0, 0, 0- .5 * math.cos((sine) / 10)) * CFrame.Angles(math.rad(0 + 30 * math.cos((sine) / 10)), 0, 0),
  1611. }, .3, false)
  1612. end
  1613. end
  1614. end
  1615. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement