Dark_EccentricYT

Untitled

Apr 5th, 2018
5,039
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 38.30 KB | None | 0 0
  1. --------------------------------------------------------------------------------
  2. --A Really Mad Guy with a Knife, a Tec-9 and a Sawed-Off! THOSE KIDS WILL PAY!--
  3. --------------------------------------------------------------------------------
  4. --By CKbackup (Sugarie Saffron) --
  5. --YT: https://www.youtube.com/channel/UC8n9FFz7e6Zo13ob_5F9MJw--
  6. --Discord: Sugarie Saffron#4705 --
  7. ----------------------------------------------------------------
  8.  
  9. wait(1/60)
  10. Effects = { }
  11. local Player = game:service'Players'.localPlayer
  12. local chara = Player.Character
  13. local Humanoid = chara:FindFirstChildOfClass("Humanoid")
  14. local Mouse = Player:GetMouse()
  15. local LeftArm = chara["Left Arm"]
  16. local RightArm = chara["Right Arm"]
  17. local LeftLeg = chara["Left Leg"]
  18. local RightLeg = chara["Right Leg"]
  19. local Head = chara.Head
  20. local Torso = chara.Torso
  21. local Camera = workspace.CurrentCamera
  22. local RootPart = chara.HumanoidRootPart
  23. local RootJoint = RootPart.RootJoint
  24. local attack = false
  25. local Anim = 'Idle'
  26. local attacktype = 1
  27. local delays = false
  28. local play = true
  29. local targetted = nil
  30. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  31. local velocity = RootPart.Velocity.y
  32. local sine = 0
  33. local change = 1
  34. local doe = 0
  35. local Create = LoadLibrary("RbxUtility").Create
  36. local debby = game:GetService("Debris")
  37. Humanoid.WalkSpeed = 8
  38.  
  39. Humanoid.Animator.Parent = nil
  40. chara.Animate.Parent = nil
  41.  
  42. local newMotor = function(part0, part1, c0, c1)
  43. local w = Create('Motor'){
  44. Parent = part0,
  45. Part0 = part0,
  46. Part1 = part1,
  47. C0 = c0,
  48. C1 = c1,
  49. }
  50. return w
  51. end
  52.  
  53. function clerp(a, b, t)
  54. return a:lerp(b, t)
  55. end
  56.  
  57. RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  58. NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  59.  
  60. local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
  61. local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
  62. local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
  63. local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
  64. RootJoint.C1 = CFrame.new(0, 0, 0)
  65. RootJoint.C0 = CFrame.new(0, 0, 0)
  66. Torso.Neck.C1 = CFrame.new(0, 0, 0)
  67. Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
  68.  
  69. local rarmc1 = RW.C1
  70. local larmc1 = LW.C1
  71. local rlegc1 = RH.C1
  72. local llegc1 = LH.C1
  73.  
  74. local resetc1 = false
  75.  
  76. function PlayAnimationFromTable(table, speed, bool)
  77. RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
  78. Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed)
  79. RW.C0 = clerp(RW.C0, table[3], speed)
  80. LW.C0 = clerp(LW.C0, table[4], speed)
  81. RH.C0 = clerp(RH.C0, table[5], speed)
  82. LH.C0 = clerp(LH.C0, table[6], speed)
  83. if bool == true then
  84. if resetc1 == false then
  85. resetc1 = true
  86. RootJoint.C1 = RootJoint.C1
  87. Torso.Neck.C1 = Torso.Neck.C1
  88. RW.C1 = rarmc1
  89. LW.C1 = larmc1
  90. RH.C1 = rlegc1
  91. LH.C1 = llegc1
  92. end
  93. end
  94. end
  95.  
  96. ArtificialHB = Instance.new("BindableEvent", script)
  97. ArtificialHB.Name = "Heartbeat"
  98. script:WaitForChild("Heartbeat")
  99. frame = 0.03333333333333
  100. tf = 0
  101. allowframeloss = false
  102. tossremainder = false
  103. lastframe = tick()
  104. script.Heartbeat:Fire()
  105. game:GetService("RunService").Heartbeat:connect(function(s, p)
  106. tf = tf + s
  107. if tf >= frame then
  108. if allowframeloss then
  109. script.Heartbeat:Fire()
  110. lastframe = tick()
  111. else
  112. for i = 1, math.floor(tf / frame) do
  113. script.Heartbeat:Fire()
  114. end
  115. lastframe = tick()
  116. end
  117. if tossremainder then
  118. tf = 0
  119. else
  120. tf = tf - frame * math.floor(tf / frame)
  121. end
  122. end
  123. end)
  124. function swait(num)
  125. if num == 0 or num == nil then
  126. ArtificialHB.Event:wait()
  127. else
  128. for i = 0, num do
  129. ArtificialHB.Event:wait()
  130. end
  131. end
  132. end
  133.  
  134. function RemoveOutlines(part)
  135. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  136. end
  137.  
  138. function so(id,par,pit,vol)
  139. local sou = Instance.new("Sound", par or workspace)
  140. if par == chara then
  141. sou.Parent = chara.Torso
  142. end
  143. sou.Volume = vol
  144. sou.Pitch = pit or 1
  145. sou.SoundId = "rbxassetid://" .. id
  146. sou.PlayOnRemove = true
  147. sou:Destroy()
  148. end
  149.  
  150. --This is just for builds--
  151. New = function(Object, Parent, Name, Data)
  152. local Object = Instance.new(Object)
  153. for Index, Value in pairs(Data or {}) do
  154. Object[Index] = Value
  155. end
  156. Object.Parent = Parent
  157. Object.Name = Name
  158. return Object
  159. end
  160. 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),})
  161. 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,})
  162. 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),})
  163. 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),})
  164. Mesh = New("SpecialMesh",TEC9,"Mesh",{Scale = Vector3.new(0.300000012, 0.300000012, 0.300000012),MeshId = "rbxassetid://742046473",TextureId = "rbxassetid://742046691",MeshType = Enum.MeshType.FileMesh,})
  165. 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),})
  166. 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),})
  167. Mesh = New("SpecialMesh",DBarrel,"Mesh",{Scale = Vector3.new(0.00700000022, 0.00700000022, 0.00700000022),MeshId = "rbxassetid://438826329",TextureId = "rbxassetid://438826340",MeshType = Enum.MeshType.FileMesh,})
  168. 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),})
  169.  
  170. local att1 = Instance.new("Attachment",Naifu)
  171. att1.Position = Vector3.new(0,.2,-.2)
  172. local att2 = Instance.new("Attachment",Naifu)
  173. att2.Position = Vector3.new(0,.1,1.5)
  174. local tr1 = Instance.new("Trail",Naifu)
  175. tr1.Color = ColorSequence.new(Color3.new(.5,.5,.5),Color3.new(1,1,1))
  176. tr1.Transparency = NumberSequence.new(0,1)
  177. tr1.Lifetime = .5
  178. tr1.Enabled = false
  179. tr1.Attachment0 = att1
  180. tr1.Attachment1 = att2
  181.  
  182. if chara:FindFirstChild("FakeHeadM") then
  183. local CorruptFace = New("Decal",chara.FakeHeadM.FakeHead,"Corrupt",{Texture = "rbxassetid://1000657824",})
  184. chara.FakeHeadM.FakeHead.Normal:Destroy()
  185. chara.FakeHeadM.FakeHead.Lood:Destroy()
  186. chara.FakeHeadM.FakeHead.Rooped:Destroy()
  187. chara.FaysG:Destroy()
  188. chara.FakeHeadM.Ahoge:Destroy()
  189. for i,v in pairs(chara:GetDescendants()) do
  190. if v.Name == "SpecPart" or v.Name == "Ears1Part" then
  191. v:Destroy()
  192. elseif v.Name == "Ears2Part" then
  193. v.Transparency = 0
  194. end
  195. end
  196. end
  197. for i, v in pairs(chara:children()) do
  198. if v:IsA("Shirt") or v:IsA("Pants") then
  199. v:Destroy()
  200. elseif v.Name == "Chest" then
  201. for a, b in pairs(v:children()) do
  202. if b.Name ~= "Tail" then
  203. b.Transparency = 1
  204. end
  205. end
  206. end
  207. end
  208. local sh = Instance.new("Shirt",chara)
  209. local pn = Instance.new("Pants",chara)
  210. sh.ShirtTemplate = "rbxassetid://567462542"
  211. pn.PantsTemplate = "rbxassetid://1521666087"
  212. ---------------------------
  213.  
  214. function rayCast(Position, Direction, Range, Ignore)
  215. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  216. end
  217.  
  218. function FindNearestTorso(Position, Distance, SinglePlayer)
  219. if SinglePlayer then
  220. return (SinglePlayer.Head.CFrame.p - Position).magnitude < Distance
  221. end
  222. local List = {}
  223. for i, v in pairs(workspace:GetDescendants()) do
  224. if v:IsA("Model") then
  225. if v:findFirstChild("Head") then
  226. if v ~= chara then
  227. if (v.Head.Position - Position).magnitude <= Distance then
  228. table.insert(List, v)
  229. end
  230. end
  231. end
  232. end
  233. end
  234. return List
  235. end
  236.  
  237. EffectModel = Create("Model"){
  238. Parent = chara,
  239. Name = "Effects",
  240. }
  241.  
  242. --Effect Functions--
  243. Effects = {
  244.  
  245. Block = function(cf,partsize,meshstart,meshadd,matr,colour,spin,inverse,factor)
  246. local p = Instance.new("Part",EffectModel)
  247. p.BrickColor = BrickColor.new(colour)
  248. p.Size = partsize
  249. p.Anchored = true
  250. p.CanCollide = false
  251. p.Material = matr
  252. p.CFrame = cf
  253. if inverse == true then
  254. p.Transparency = 1
  255. else
  256. p.Transparency = 0
  257. end
  258. local m = Instance.new("BlockMesh",p)
  259. m.Scale = meshstart
  260. coroutine.wrap(function()
  261. for i=0,1,factor do
  262. swait()
  263. if inverse == true then
  264. p.Transparency = 1-i
  265. else
  266. p.Transparency = i
  267. end
  268. m.Scale = m.Scale + meshadd
  269. if spin == true then
  270. p.CFrame = p.CFrame * CFrame.Angles(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  271. end
  272. end
  273. p:Destroy()
  274. end)()
  275. return p
  276. end,
  277.  
  278. Sphere = function(cf,partsize,meshstart,meshadd,matr,colour,inverse,factor)
  279. local p = Instance.new("Part",EffectModel)
  280. p.BrickColor = BrickColor.new(colour)
  281. p.Size = partsize
  282. p.Anchored = true
  283. p.CanCollide = false
  284. p.Material = matr
  285. p.CFrame = cf
  286. if inverse == true then
  287. p.Transparency = 1
  288. else
  289. p.Transparency = 0
  290. end
  291. local m = Instance.new("SpecialMesh",p)
  292. m.MeshType = "Sphere"
  293. m.Scale = meshstart
  294. coroutine.wrap(function()
  295. for i=0,1,factor do
  296. swait()
  297. if inverse == true then
  298. p.Transparency = 1-i
  299. else
  300. p.Transparency = i
  301. end
  302. m.Scale = m.Scale + meshadd
  303. end
  304. p:Destroy()
  305. end)()
  306. return p
  307. end,
  308.  
  309. Cylinder = function(cf,partsize,meshstart,meshadd,matr,colour,inverse,factor)
  310. local p = Instance.new("Part",EffectModel)
  311. p.BrickColor = BrickColor.new(colour)
  312. p.Size = partsize
  313. p.Anchored = true
  314. p.CanCollide = false
  315. p.Material = matr
  316. p.CFrame = cf
  317. if inverse == true then
  318. p.Transparency = 1
  319. else
  320. p.Transparency = 0
  321. end
  322. local m = Instance.new("CylinderMesh",p)
  323. m.Scale = meshstart
  324. coroutine.wrap(function()
  325. for i=0,1,factor do
  326. swait()
  327. if inverse == true then
  328. p.Transparency = 1-i
  329. else
  330. p.Transparency = i
  331. end
  332. m.Scale = m.Scale + meshadd
  333. end
  334. p:Destroy()
  335. end)()
  336. return p
  337. end,
  338.  
  339. Wave = function(cf,meshstart,meshadd,colour,spin,inverse,factor)
  340. local p = Instance.new("Part",EffectModel)
  341. p.BrickColor = BrickColor.new(colour)
  342. p.Size = Vector3.new()
  343. p.Anchored = true
  344. p.CanCollide = false
  345. p.CFrame = cf
  346. if inverse == true then
  347. p.Transparency = 1
  348. else
  349. p.Transparency = 0
  350. end
  351. local m = Instance.new("SpecialMesh",p)
  352. m.MeshId = "rbxassetid://20329976"
  353. m.Scale = meshstart
  354. coroutine.wrap(function()
  355. for i=0,1,factor do
  356. swait()
  357. if inverse == true then
  358. p.Transparency = 1-i
  359. else
  360. p.Transparency = i
  361. end
  362. m.Scale = m.Scale + meshadd
  363. p.CFrame = p.CFrame * CFrame.Angles(0,math.rad(spin),0)
  364. end
  365. p:Destroy()
  366. end)()
  367. return p
  368. end,
  369.  
  370. Ring = function(cf,meshstart,meshadd,colour,inverse,factor)
  371. local p = Instance.new("Part",EffectModel)
  372. p.BrickColor = BrickColor.new(colour)
  373. p.Size = Vector3.new()
  374. p.Anchored = true
  375. p.CanCollide = false
  376. p.CFrame = cf
  377. if inverse == true then
  378. p.Transparency = 1
  379. else
  380. p.Transparency = 0
  381. end
  382. local m = Instance.new("SpecialMesh",p)
  383. m.MeshId = "rbxassetid://3270017"
  384. m.Scale = meshstart
  385. coroutine.wrap(function()
  386. for i=0,1,factor do
  387. swait()
  388. if inverse == true then
  389. p.Transparency = 1-i
  390. else
  391. p.Transparency = i
  392. end
  393. m.Scale = m.Scale + meshadd
  394. end
  395. p:Destroy()
  396. end)()
  397. return p
  398. end,
  399.  
  400. Meshed = function(cf,meshstart,meshadd,colour,meshid,textid,spin,inverse,factor)
  401. local p = Instance.new("Part",EffectModel)
  402. p.BrickColor = BrickColor.new(colour)
  403. p.Size = Vector3.new()
  404. p.Anchored = true
  405. p.CanCollide = false
  406. p.CFrame = cf
  407. if inverse == true then
  408. p.Transparency = 1
  409. else
  410. p.Transparency = 0
  411. end
  412. local m = Instance.new("SpecialMesh",p)
  413. m.MeshId = meshid
  414. m.TextureId = textid
  415. m.Scale = meshstart
  416. coroutine.wrap(function()
  417. for i=0,1,factor do
  418. swait()
  419. if inverse == true then
  420. p.Transparency = 1-i
  421. else
  422. p.Transparency = i
  423. end
  424. m.Scale = m.Scale + meshadd
  425. p.CFrame = p.CFrame * CFrame.Angles(0,math.rad(spin),0)
  426. end
  427. p:Destroy()
  428. end)()
  429. return p
  430. end,
  431.  
  432. Explode = function(cf,partsize,meshstart,meshadd,matr,colour,move,inverse,factor)
  433. local p = Instance.new("Part",EffectModel)
  434. p.BrickColor = BrickColor.new(colour)
  435. p.Size = partsize
  436. p.Anchored = true
  437. p.CanCollide = false
  438. p.Material = matr
  439. p.CFrame = cf * CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  440. if inverse == true then
  441. p.Transparency = 1
  442. else
  443. p.Transparency = 0
  444. end
  445. local m = Instance.new("SpecialMesh",p)
  446. m.MeshType = "Sphere"
  447. m.Scale = meshstart
  448. coroutine.wrap(function()
  449. for i=0,1,factor do
  450. swait()
  451. if inverse == true then
  452. p.Transparency = 1-i
  453. else
  454. p.Transparency = i
  455. end
  456. m.Scale = m.Scale + meshadd
  457. p.CFrame = p.CFrame * CFrame.new(0,move,0)
  458. end
  459. p:Destroy()
  460. end)()
  461. return p
  462. end,
  463.  
  464. }
  465.  
  466. function chatfunc(text)
  467. coroutine.wrap(function()
  468. if chara:FindFirstChild("TalkingBillBoard")~= nil then
  469. chara:FindFirstChild("TalkingBillBoard"):destroy()
  470. end
  471. local naeeym2 = Instance.new("BillboardGui",chara)
  472. naeeym2.Size = UDim2.new(0,100,0,40)
  473. naeeym2.StudsOffset = Vector3.new(0,3,0)
  474. naeeym2.Adornee = chara.Head
  475. naeeym2.Name = "BLABLABLA"
  476. local tecks2 = Instance.new("TextLabel",naeeym2)
  477. tecks2.BackgroundTransparency = 1
  478. tecks2.BorderSizePixel = 0
  479. tecks2.Text = ""
  480. tecks2.Font = "Antique"
  481. tecks2.FontSize = "Size24"
  482. tecks2.TextStrokeTransparency = 0
  483. tecks2.TextColor3 = Color3.new(0,0,0)
  484. tecks2.TextStrokeColor3 = Color3.new(1,0,0)
  485. tecks2.Size = UDim2.new(1,0,0.5,0)coroutine.wrap(function()
  486. while tecks2 ~= nil do
  487. swait()
  488. tecks2.Position = UDim2.new(0,math.random(-3,3),0,math.random(-3,3))
  489. end
  490. end)()
  491. for i = 1,string.len(text),1 do
  492. tecks2.Text = string.sub(text,1,i)
  493. swait()
  494. end
  495. swait(30)
  496. for i = 1, 5 do
  497. swait()
  498. tecks2.Position = tecks2.Position - UDim2.new(0,0,.05,0)
  499. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.2
  500. tecks2.TextTransparency = tecks2.TextTransparency + .2
  501. end
  502. naeeym2:Destroy()
  503. end)()
  504. end
  505.  
  506. function GetDudesTorso(c)
  507. local torsy = (c:findFirstChild("Torso") or c:findFirstChild("UpperTorso"))
  508. if torsy ~= nil then
  509. return torsy
  510. end
  511. end
  512.  
  513. function BodyVel(part,faws)
  514. local bodyvel = Instance.new("BodyVelocity",part)
  515. local pep = 10000000
  516. bodyvel.P = pep
  517. bodyvel.MaxForce = Vector3.new(pep,pep,pep)
  518. bodyvel.Velocity = faws
  519. debby:AddItem(bodyvel,.2)
  520. end
  521.  
  522. function Dmg(dude,dmg,env,faws,trip,efftyp,toim)
  523. if dude and dude ~= chara and dude.Name ~= "CKbackup" and dude.Name ~= "Nebula_Zorua" and dude.Name ~= "Salvo_Starly" then
  524. if dude:FindFirstChild("HITO") then return end
  525. local debounce = Instance.new("BoolValue",dude)
  526. debounce.Name = "HITO"
  527. debby:AddItem(debounce,toim)
  528. local hum = dude:FindFirstChildOfClass("Humanoid")
  529. local dam = dmg+math.random(-env,env)
  530. local teksu = "-"..dam
  531. if hum then
  532. local finhel = hum.Health - dam
  533. if finhel <= 0 and dude:FindFirstChild("DEATHED")==nil then
  534. Instance.new("BoolValue",dude).Name = "DEATHED"
  535. local soaa = Instance.new("Sound",dude.Head)
  536. local cho = math.random(1,5)
  537. if cho == 1 then
  538. soaa.SoundId = "rbxassetid://111896685"
  539. elseif cho == 2 then
  540. soaa.SoundId = "rbxassetid://535528169"
  541. elseif cho == 3 then
  542. soaa.SoundId = "rbxassetid://1080363252"
  543. elseif cho == 4 then
  544. soaa.SoundId = "rbxassetid://147758746"
  545. elseif cho == 5 then
  546. soaa.SoundId = "rbxassetid://626777433"
  547. soaa.Volume = .2
  548. soaa.TimePosition = 1
  549. end
  550. game:service'Debris':AddItem(soaa,6)
  551. soaa:Play()
  552. end
  553. hum.Health = hum.Health - dam
  554. end
  555. coroutine.wrap(function()
  556. local naeeym2 = Instance.new("BillboardGui",dude)
  557. naeeym2.Size = UDim2.new(0,100,0,40)
  558. naeeym2.StudsOffset = Vector3.new(0,3,0)
  559. naeeym2.Adornee = dude:FindFirstChild("Head")
  560. naeeym2.Name = "TalkingBillBoard"
  561. local tecks2 = Instance.new("TextLabel",naeeym2)
  562. tecks2.BackgroundTransparency = 1
  563. tecks2.BorderSizePixel = 0
  564. tecks2.Text = teksu
  565. tecks2.Font = "Antique"
  566. tecks2.TextSize = 24
  567. tecks2.TextStrokeTransparency = 0
  568. tecks2.TextColor3 = Color3.new(0,0,0)
  569. tecks2.TextStrokeColor3 = Color3.new(1,0,0)
  570. tecks2.Size = UDim2.new(1,0,0.5,0)
  571. swait(10)
  572. for i = 0,1,.05 do
  573. swait()
  574. tecks2.Position = tecks2.Position - UDim2.new(0,0,.005,0)
  575. tecks2.TextStrokeTransparency = i
  576. tecks2.TextTransparency = i
  577. end
  578. naeeym2:Destroy()
  579. end)()
  580. local torsy = GetDudesTorso(dude)
  581. if torsy then
  582. for i=1,dam/5 do
  583. local blp = Instance.new("Part",EffectModel)
  584. blp.Size = Vector3.new(.3,.3,.3)
  585. blp.BrickColor = BrickColor.new("Crimson")
  586. blp.CFrame = torsy.CFrame
  587. blp.Velocity = torsy.CFrame.lookVector*5
  588. coroutine.wrap(function()
  589. swait(10)
  590. blp.Orientation = Vector3.new(0,blp.Orientation.y,0)
  591. for i=0,1,.1 do
  592. swait()
  593. blp.Transparency = i
  594. blp.Size = blp.Size + Vector3.new(.02,-.02,.02)
  595. end
  596. blp:Destroy()
  597. end)()
  598. end
  599. if efftyp == "Blunt" then
  600. puncheff(torsy)
  601. elseif efftyp == "Sharp" then
  602. slasheff(torsy)
  603. end
  604. if faws ~= 0 then
  605. BodyVel(torsy,faws)
  606. end
  607. if trip == true then
  608. torsy.CFrame = torsy.CFrame * CFrame.Angles(math.rad(-90),0,0)
  609. torsy.RotVelocity = Vector3.new(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  610. end
  611. end
  612. end
  613. end
  614.  
  615. function MagnitudeDmg(par,magni,dmg,env,faws,trip,efftyp,toim)
  616. for _, c in pairs(workspace:GetDescendants()) do
  617. local hum = c:FindFirstChildOfClass("Humanoid")
  618. if hum ~= nil and c:FindFirstChild("IsTeamMateOfCK")==nil and c.Name ~= "CKbackup" and c.Name ~= "Nebula_Zorua" and c.Name ~= "Salvo_Starly" then
  619. local head = GetDudesTorso(c)
  620. if head ~= nil then
  621. local targ = head.Position - par.Position
  622. local mag = targ.magnitude
  623. if magni >= mag and c ~= chara then
  624. Dmg(c,dmg,env,faws,trip,efftyp,toim)
  625. end
  626. end
  627. end
  628. end
  629. end
  630.  
  631. function puncheff(par)
  632. if par.Parent:FindFirstChild("DebounceHit")==nil then
  633. so(386946017,par,math.random(80,120)/100,1)
  634. Effects.Sphere(par.CFrame,Vector3.new(1,1,1),Vector3.new(1,1,1),Vector3.new(2,2,2),"Neon","White",false,.1)
  635. end
  636. end
  637.  
  638. function slasheff(par)
  639. if par.Parent:FindFirstChild("DebounceHit")==nil then
  640. local cho = math.random(1,3)
  641. if cho == 1 then
  642. so(444667824,par,1,1)
  643. elseif cho == 2 then
  644. so(444667844,par,1,1)
  645. elseif cho == 3 then
  646. so(444667859,par,1,1)
  647. end
  648. --function(cf,partsize,meshstart,meshadd,matr,colour,factor)
  649. 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)
  650. end
  651. end
  652.  
  653. local mus = Instance.new("Sound",Head)
  654. mus.Name = "mus"
  655. mus.SoundId = "rbxassetid://581195737"
  656. mus.Looped = true
  657. mus.Volume = 1
  658. mus:Play()
  659.  
  660. coroutine.wrap(function()
  661. chatfunc("I'm tired of all of this crap..")
  662. swait(90)
  663. chatfunc("Now the day of reckoning has begun..")
  664. swait(90)
  665. chatfunc("This shall be my finest hour..")
  666. swait(90)
  667. chatfunc("ICH BIN GOTT! BERZERKER!")
  668. end)()
  669.  
  670. function smek()
  671. attack = true
  672. Humanoid.WalkSpeed = 16
  673. for i=0,1,.1 do
  674. swait()
  675. PlayAnimationFromTable({
  676. 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),
  677. 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),
  678. CFrame.new(1.40946591, -0.0135071278, 0, 1.00000012, 0, 0, 0, 1, 0, 0, 0, 1.00000012),
  679. 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),
  680. CFrame.new(0.499983132, -2.00001597, -9.13441181e-06, 0.76604414, 0, -0.642788053, 0, 1, 0, 0.642788053, 0, 0.76604414),
  681. CFrame.new(-0.500005186, -2.00001597, -1.22189522e-06, 0.98480773, 0, 0.173648447, 0, 1, 0, -0.173648447, 0, 0.98480773),
  682. }, .3, false)
  683. end
  684. Humanoid.WalkSpeed = 2
  685. tr1.Enabled = true
  686. so(536642316,Naifu,1,1)
  687. for i=0,1.4,.2 do
  688. swait()
  689. PlayAnimationFromTable({
  690. 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),
  691. 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),
  692. 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),
  693. 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),
  694. CFrame.new(0.500005841, -2.00003386, -4.52250242e-06, 0.984807551, 0, -0.173649341, 0, 1, 0, 0.173649341, 0, 0.984807551),
  695. CFrame.new(-0.499993563, -2.00003386, -1.44541264e-06, 0.64278698, 0, 0.766044974, 0, 1, 0, -0.766044974, 0, 0.64278698),
  696. }, .5, false)
  697. MagnitudeDmg(Naifu,3,40,3,RootPart.CFrame.lookVector*5,false,"Sharp",.5)
  698. end
  699. swait(5)
  700. Humanoid.WalkSpeed = 8
  701. tr1.Enabled = false
  702. attack = false
  703. end
  704.  
  705. zhold = true
  706. function shoot()
  707. attack = true
  708. so(169799883,TEC9,1,1)
  709. for i=0,1,.1 do
  710. swait()
  711. PlayAnimationFromTable({
  712. CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  713. 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),
  714. 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),
  715. CFrame.new(-1.43159902, 0, 0.187939197, 0.939692736, 0, 0.342019886, 0, 1, 0, -0.342019916, 0, 0.939692736),
  716. CFrame.new(0.499998897, -1.99999988, -1.49011612e-06, 0.939692736, 0, -0.342019886, 0, 1, 0, 0.342019916, 0, 0.939692736),
  717. CFrame.new(-0.500001848, -1.99999988, 1.62422657e-06, 0.939692736, 0, 0.342019886, 0, 1, 0, -0.342019916, 0, 0.939692736),
  718. }, .3, false)
  719. end
  720. Humanoid.WalkSpeed = 2
  721. local ref = Instance.new("Part",chara)
  722. ref.Size = Vector3.new(0,0,0)
  723. ref.Anchored = true
  724. ref.CanCollide = false
  725. ref.Transparency = 1
  726. TEC9.Transparency = 0
  727. for i=0,1,.1 do
  728. swait()
  729. PlayAnimationFromTable({
  730. CFrame.new(-0.0438226089, 0, -0.0217384323, 0.939692736, 0, 0.342019886, 0, 1, 0, -0.342019916, 0, 0.939692736),
  731. 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),
  732. 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),
  733. CFrame.new(-1.34998989, 0, 0.259806901, 0.866024911, 0, 0.500000954, 0, 1, 0, -0.500000954, 0, 0.866024852),
  734. CFrame.new(0.499997795, -1.99999917, -1.51991844e-06, 0.866025686, 0, -0.499999642, 0, 1, 0, 0.499999642, 0, 0.866025686),
  735. CFrame.new(-0.500000119, -1.99999917, 1.50501728e-06, 0.939692438, 0, 0.342020929, 0, 1, 0, -0.342020959, 0, 0.939692438),
  736. }, .3, false)
  737. end
  738. swait(5)
  739. local shots = 20
  740. repeat
  741. so(745308042,TEC9,1,1)
  742. ref.CFrame = Mouse.Hit
  743. MagnitudeDmg(ref,2,12,2,RootPart.CFrame.lookVector*3,false,"Shot",.1)
  744. local hitpt = Instance.new("Part",EffectModel)
  745. hitpt.Size = Vector3.new(0,0,.3)
  746. hitpt.CFrame = TEC9.CFrame * CFrame.new(0,.465,.1)-- * CFrame.Angles(math.rad(90),0,0)
  747. hitpt.Velocity = RootPart.CFrame.rightVector*10+Vector3.new(0,5,0)
  748. local hitm = Instance.new("SpecialMesh",hitpt)
  749. hitm.MeshId = "rbxassetid://94295100"
  750. hitm.TextureId = "rbxassetid://94287792"
  751. hitm.Scale = Vector3.new(3,3,3.5)
  752. coroutine.wrap(function()
  753. swait(30)
  754. for i = 0,1,.1 do
  755. swait()
  756. hitpt.Transparency = i
  757. end
  758. hitpt:Destroy()
  759. end)()
  760. 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)
  761. shots = shots - 1
  762. for i=0,1 do
  763. swait()
  764. PlayAnimationFromTable({
  765. CFrame.new(-0.0438226089, 0, -0.0217384323, 0.939692736, 0, 0.342019886, 0, 1, 0, -0.342019916, 0, 0.939692736),
  766. 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),
  767. 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))),
  768. CFrame.new(-1.34998989, 0, 0.259806901, 0.866024911, 0, 0.500000954, 0, 1, 0, -0.500000954, 0, 0.866024852),
  769. CFrame.new(0.499997795, -1.99999917, -1.51991844e-06, 0.866025686, 0, -0.499999642, 0, 1, 0, 0.499999642, 0, 0.866025686),
  770. CFrame.new(-0.500000119, -1.99999917, 1.50501728e-06, 0.939692438, 0, 0.342020929, 0, 1, 0, -0.342020959, 0, 0.939692438),
  771. }, .3, false)
  772. end
  773. until zhold == false or shots == 0
  774. swait(5)
  775. ref:Destroy()
  776. for i=0,1,.25 do
  777. swait()
  778. PlayAnimationFromTable({
  779. CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  780. CFrame.new(0, 1.44842434, -0.192443371, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736),
  781. 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),
  782. 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),
  783. CFrame.new(0.50000149, -1.99999857, -2.11596489e-06, 0.984807849, 0, -0.173647985, 0, 1, 0, 0.173647985, 0, 0.984807849),
  784. CFrame.new(-0.500000834, -1.99999857, 1.63912773e-06, 0.984807849, 0, 0.173647985, 0, 1, 0, -0.173647985, 0, 0.984807849),
  785. }, .4, false)
  786. end
  787. so(1159825801,TEC9,1,1)
  788. swait(15)
  789. so(211134014,TEC9,1,1)
  790. for i=0,1,.1 do
  791. swait()
  792. PlayAnimationFromTable({
  793. CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  794. 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),
  795. 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),
  796. CFrame.new(-1.43159902, 0, 0.187939197, 0.939692736, 0, 0.342019886, 0, 1, 0, -0.342019916, 0, 0.939692736),
  797. CFrame.new(0.499998897, -1.99999988, -1.49011612e-06, 0.939692736, 0, -0.342019886, 0, 1, 0, 0.342019916, 0, 0.939692736),
  798. CFrame.new(-0.500001848, -1.99999988, 1.62422657e-06, 0.939692736, 0, 0.342019886, 0, 1, 0, -0.342019916, 0, 0.939692736),
  799. }, .3, false)
  800. end
  801. TEC9.Transparency = 1
  802. Humanoid.WalkSpeed = 8
  803. attack = false
  804. end
  805.  
  806. function dbshoot()
  807. attack = true
  808. so(169799883,DBarrel,1,1)
  809. for i=0,1,.1 do
  810. swait()
  811. PlayAnimationFromTable({
  812. CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  813. 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),
  814. 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),
  815. CFrame.new(-1.43159902, 0, 0.187939197, 0.939692736, 0, 0.342019886, 0, 1, 0, -0.342019916, 0, 0.939692736),
  816. CFrame.new(0.499998897, -1.99999988, -1.49011612e-06, 0.939692736, 0, -0.342019886, 0, 1, 0, 0.342019916, 0, 0.939692736),
  817. CFrame.new(-0.500001848, -1.99999988, 1.62422657e-06, 0.939692736, 0, 0.342019886, 0, 1, 0, -0.342019916, 0, 0.939692736),
  818. }, .3, false)
  819. end
  820. Humanoid.WalkSpeed = 2
  821. DBarrel.Transparency = 0
  822. for i=0,1,.1 do
  823. swait()
  824. PlayAnimationFromTable({
  825. CFrame.new(0, 0.0149096567, 0.133909225, 1, 0, 0, 0, 0.984807849, -0.173647985, 0, 0.173647985, 0.984807849),
  826. CFrame.new(0, 1.43158329, -0.187937319, 1, 0, 0, 0, 0.939692855, 0.342019796, 0, -0.342019796, 0.939692855),
  827. 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),
  828. 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),
  829. 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),
  830. 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),
  831. }, .3, false)
  832. end
  833. swait(5)
  834. so(132455829,DBarrel,1,1)
  835. local ref = Instance.new("Part",chara)
  836. ref.Size = Vector3.new(0,0,0)
  837. ref.Anchored = true
  838. ref.CanCollide = false
  839. ref.Transparency = 1
  840. ref.CFrame = RootPart.CFrame*CFrame.new(0,0,-6)
  841. MagnitudeDmg(ref,4,100,0,RootPart.CFrame.lookVector*12,true,"Shot",.1)
  842. 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)
  843. 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)
  844. ref:Destroy()
  845. for i=0,1,.1 do
  846. swait()
  847. PlayAnimationFromTable({
  848. CFrame.new(0, 0.0149102025, 0.133909985, 1, 0, 0, 0, 0.984812796, -0.173648849, 0, 0.173648849, 0.984812796),
  849. CFrame.new(0, 1.43158948, 0.0120660895, 1, 0, 0, 0, 1.00000262, -1.1920929e-07, 0, 1.1920929e-07, 1.00000262),
  850. 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),
  851. 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),
  852. 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),
  853. 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),
  854. }, .3, false)
  855. end
  856. swait(10)
  857. for i=0,1,.25 do
  858. swait()
  859. PlayAnimationFromTable({
  860. CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  861. CFrame.new(0, 1.44842434, -0.192443371, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736),
  862. 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),
  863. 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),
  864. CFrame.new(0.50000149, -1.99999857, -2.11596489e-06, 0.984807849, 0, -0.173647985, 0, 1, 0, 0.173647985, 0, 0.984807849),
  865. CFrame.new(-0.500000834, -1.99999857, 1.63912773e-06, 0.984807849, 0, 0.173647985, 0, 1, 0, -0.173647985, 0, 0.984807849),
  866. }, .4, false)
  867. end
  868. for i=1,2 do
  869. so(1159825801,DBarrel,1,1)
  870. local hitpt = Instance.new("Part",EffectModel)
  871. hitpt.Size = Vector3.new(0,0,.3)
  872. hitpt.CFrame = TEC9.CFrame * CFrame.Angles(math.rad(90),0,0)
  873. hitpt.Velocity = RootPart.CFrame.rightVector*10+Vector3.new(0,5,0)
  874. local hitm = Instance.new("SpecialMesh",hitpt)
  875. hitm.MeshId = "rbxassetid://94248124"
  876. hitm.TextureId = "rbxassetid://94219470"
  877. hitm.Scale = Vector3.new(1.2,1.2,1.2)
  878. coroutine.wrap(function()
  879. swait(30)
  880. for i = 0,1,.1 do
  881. swait()
  882. hitpt.Transparency = i
  883. end
  884. hitpt:Destroy()
  885. end)()
  886. swait()
  887. end
  888. swait(15)
  889. so(211134014,DBarrel,1,1)
  890. for i=0,1,.1 do
  891. swait()
  892. PlayAnimationFromTable({
  893. CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  894. 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),
  895. 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),
  896. CFrame.new(-1.43159902, 0, 0.187939197, 0.939692736, 0, 0.342019886, 0, 1, 0, -0.342019916, 0, 0.939692736),
  897. CFrame.new(0.499998897, -1.99999988, -1.49011612e-06, 0.939692736, 0, -0.342019886, 0, 1, 0, 0.342019916, 0, 0.939692736),
  898. CFrame.new(-0.500001848, -1.99999988, 1.62422657e-06, 0.939692736, 0, 0.342019886, 0, 1, 0, -0.342019916, 0, 0.939692736),
  899. }, .3, false)
  900. end
  901. DBarrel.Transparency = 1
  902. Humanoid.WalkSpeed = 8
  903. attack = false
  904. end
  905.  
  906. Mouse.Button1Down:connect(function()
  907. if attack == false then
  908. smek()
  909. end
  910. end)
  911.  
  912. local sprintt = 0
  913. Mouse.KeyDown:connect(function(k)
  914. k = k:lower()
  915. if k=='m' then
  916. if mus.IsPlaying == true then
  917. mus:Stop()
  918. elseif mus.IsPaused == true then
  919. mus:Play()
  920. end
  921. end
  922. if attack == false then
  923. if k == 'z' then
  924. zhold = true
  925. shoot()
  926. elseif k == 'x' then
  927. dbshoot()
  928. end
  929. end
  930. end)
  931.  
  932. Mouse.KeyUp:connect(function(k)
  933. k = k:lower()
  934. if k == 'z' then
  935. zhold = false
  936. end
  937. end)
  938.  
  939. coroutine.wrap(function()
  940. while 1 do
  941. swait()
  942. if doe <= 360 then
  943. doe = doe + 2
  944. else
  945. doe = 0
  946. end
  947. end
  948. end)()
  949. while true do
  950. swait()
  951. while true do
  952. swait()
  953. if Head:FindFirstChild("mus")==nil then
  954. mus = Instance.new("Sound",Head)
  955. mus.Name = "mus"
  956. mus.SoundId = "rbxassetid://581195737"
  957. mus.Looped = true
  958. mus.Volume = 1
  959. mus:Play()
  960. end
  961. if sprintt >= 1 then
  962. sprintt = sprintt - 1
  963. end
  964. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  965. velocity = RootPart.Velocity.y
  966. sine = sine + change
  967. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, chara)
  968. if RootPart.Velocity.y > 1 and hit == nil then
  969. Anim = "Jump"
  970. if attack == false then
  971. PlayAnimationFromTable({
  972. CFrame.new(0, 0.0382082276, -0.0403150208, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),
  973. CFrame.new(0, 1.46579528, 0.0939689279, 1, 0, 0, 0, 0.939692855, -0.342019796, 0, 0.342019796, 0.939692855),
  974. 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),
  975. 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),
  976. CFrame.new(0.5, -1.99739456, -0.0180913229, 1, 0, 0, 0, 1.00000012, 0, 0, 0, 1.00000012),
  977. CFrame.new(-0.5, -1.30000103, -0.39999947, 1, 0, 0, 0, 0.939692676, 0.342020601, 0, -0.342020601, 0.939692676),
  978. }, .3, false)
  979. end
  980. elseif RootPart.Velocity.y < -1 and hit == nil then
  981. Anim = "Fall"
  982. if attack == false then
  983. PlayAnimationFromTable({
  984. CFrame.new(0, -0.0646628663, 0.0399149321, 1, 0, 0, 0, 0.984807849, -0.173647985, 0, 0.173647985, 0.984807849),
  985. CFrame.new(0, 1.4913609, -0.128171027, 1, 0, 0, 0, 0.939692855, 0.342019796, 0, -0.342019796, 0.939692855),
  986. 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),
  987. 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),
  988. CFrame.new(0.500000954, -1.9973948, -0.0180922765, 1, 0, 0, 0, 1.00000012, 0, 0, 0, 1.00000012),
  989. CFrame.new(-0.499999046, -1.30000043, -0.400000483, 1, 0, 0, 0, 0.939692855, 0.342019796, 0, -0.342019796, 0.939692855),
  990. }, .3, false)
  991. end
  992. elseif Torsovelocity < 1 and hit ~= nil then
  993. Anim = "Idle"
  994. if attack == false then
  995. change = 1
  996. PlayAnimationFromTable({
  997. CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0,.05 * math.cos((sine)/10), 0),
  998. CFrame.new(0, 1.48262823, -0.0984786302, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),
  999. CFrame.new(1.20945334, -0.213505104, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736, 0, 0, 0, 1),
  1000. CFrame.new(-1.37076354, 0, -0.304326713, 0.866025388, 0, -0.500000238, 0, 1, 0, 0.500000238, 0, 0.866025388),
  1001. 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),
  1002. 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),
  1003. }, .3, false)
  1004. end
  1005. elseif Torsovelocity > 2 and hit ~= nil then
  1006. Anim = "Walk"
  1007. if attack == false then
  1008. Humanoid.WalkSpeed = 8
  1009. PlayAnimationFromTable({
  1010. 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),
  1011. CFrame.new(0, 1.48263013, -0.0984808952, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),
  1012. 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),
  1013. CFrame.new(-1.37076354, 0, -0.304326713, 0.866025388, 0, -0.500000238, 0, 1, 0, 0.500000238, 0, 0.866025388),
  1014. 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),
  1015. 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),
  1016. }, .3, false)
  1017. end
  1018. end
  1019. end
  1020. end
Add Comment
Please, Sign In to add comment