Advertisement
GodOfDuckz

despacito

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