Advertisement
Guest User

Untitled

a guest
Jan 20th, 2019
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 41.27 KB | None | 0 0
  1. wait(1 / 60)
  2.  
  3. CV="Black"
  4.  
  5. p = game.Players.LocalPlayer
  6. char = p.Character
  7. local txt = Instance.new("BillboardGui", char)
  8. txt.Adornee = char .Head
  9. txt.Name = "_status"
  10. txt.Size = UDim2.new(2, 0, 1.2, 0)
  11. txt.StudsOffset = Vector3.new(-9, 8, 0)
  12. local text = Instance.new("TextLabel", txt)
  13. text.Size = UDim2.new(10, 0, 7, 0)
  14. text.FontSize = "Size24"
  15. text.TextScaled = true
  16. text.TextTransparency = 0
  17. text.BackgroundTransparency = 1
  18. text.TextTransparency = 0
  19. text.TextStrokeTransparency = 1
  20. text.Font = "Arcade"
  21. text.TextStrokeColor3 = Color3.new(255,255,0)
  22.  
  23. v=Instance.new("Part")
  24. v.Name = "ColorBrick"
  25. v.Parent=p.Character
  26. v.FormFactor="Symmetric"
  27. v.Anchored=true
  28. v.CanCollide=false
  29. v.BottomSurface="Smooth"
  30. v.TopSurface="Smooth"
  31. v.Size=Vector3.new(10,50,3)
  32. v.Transparency=1
  33. v.CFrame=char.Torso.CFrame
  34. v.BrickColor=BrickColor.new(CV)
  35. v.Transparency=1
  36. text.TextColor3 = Color3.new(0,255,255)
  37. v.Shape="Block"
  38. text.Text = "SOME IDIOT WITH A SHOTGUN"
  39. wait(1 / 60)
  40. Effects = { }
  41. local Player = game.Players.localPlayer
  42. local Character = Player.Character
  43. local Humanoid = Character.Humanoid
  44. local mouse = Player:GetMouse()
  45. local m = Instance.new('Model', Character)
  46. m.Name = "WeaponModel"
  47. local LeftArm = Character["Left Arm"]
  48. local RightArm = Character["Right Arm"]
  49. local LeftLeg = Character["Left Leg"]
  50. local RightLeg = Character["Right Leg"]
  51. local Head = Character.Head
  52. local Torso = Character.Torso
  53. local cam = game.Workspace.CurrentCamera
  54. local RootPart = Character.HumanoidRootPart
  55. local RootJoint = RootPart.RootJoint
  56. local equipped = false
  57. local attack = false
  58. local Anim = 'Idle'
  59. local idle = 0
  60. local attacktype = 1
  61. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  62. local velocity = RootPart.Velocity.y
  63. local sine = 0
  64. local change = 1
  65. local grabbed = false
  66. local cn = CFrame.new
  67. local mr = math.rad
  68. local angles = CFrame.Angles
  69. local ud = UDim2.new
  70. local c3 = Color3.new
  71. Instance.new("ForceField", game.Players.LocalPlayer.Character)
  72. local s = Instance.new("Sound",Character)
  73. s.Name = "BGMusic"
  74. s.SoundId = "rbxassetid://257575717"
  75. s.Pitch = 1
  76. s.Volume = 0.25
  77. s.Looped = true
  78. s.archivable = false
  79. wait(0.1)
  80. s:play()
  81.  
  82. Humanoid.Animator.Parent = nil
  83. Character.Animate.Parent = nil
  84.  
  85. local newMotor = function(part0, part1, c0, c1)
  86. local w = Instance.new('Motor', part0)
  87. w.Part0 = part0
  88. w.Part1 = part1
  89. w.C0 = c0
  90. w.C1 = c1
  91. return w
  92. end
  93.  
  94. function clerp(a, b, t)
  95. return a:lerp(b, t)
  96. end
  97.  
  98. RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  99. NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  100.  
  101. local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
  102. local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
  103. local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
  104. local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
  105. RootJoint.C1 = CFrame.new(0, 0, 0)
  106. RootJoint.C0 = CFrame.new(0, 0, 0)
  107. Torso.Neck.C1 = CFrame.new(0, 0, 0)
  108. Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
  109.  
  110. local rarmc1 = RW.C1
  111. local larmc1 = LW.C1
  112. local rlegc1 = RH.C1
  113. local llegc1 = LH.C1
  114.  
  115. local resetc1 = false
  116.  
  117. function PlayAnimationFromTable(table, speed, bool)
  118. RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
  119. Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed)
  120. RW.C0 = clerp(RW.C0, table[3], speed)
  121. LW.C0 = clerp(LW.C0, table[4], speed)
  122. RH.C0 = clerp(RH.C0, table[5], speed)
  123. LH.C0 = clerp(LH.C0, table[6], speed)
  124. if bool == true then
  125. if resetc1 == false then
  126. resetc1 = true
  127. RootJoint.C1 = RootJoint.C1
  128. Torso.Neck.C1 = Torso.Neck.C1
  129. RW.C1 = rarmc1
  130. LW.C1 = larmc1
  131. RH.C1 = rlegc1
  132. LH.C1 = llegc1
  133. end
  134. end
  135. end
  136.  
  137. Char = char
  138.  
  139. --[[Credits to SazErenos for his Artificial Heartbeat]]--
  140.  
  141. ArtificialHB = Instance.new("BindableEvent", script)
  142. ArtificialHB.Name = "Heartbeat"
  143.  
  144. script:WaitForChild("Heartbeat")
  145.  
  146. frame = 1 / 30
  147. tf = 0
  148. allowframeloss = false
  149. tossremainder = false
  150. lastframe = tick()
  151. script.Heartbeat:Fire()
  152.  
  153. game:GetService("RunService").Heartbeat:connect(function(s, p)
  154. tf = tf + s
  155. if tf >= frame then
  156. if allowframeloss then
  157. script.Heartbeat:Fire()
  158. lastframe = tick()
  159. else
  160. for i = 1, math.floor(tf / frame) do
  161. script.Heartbeat:Fire()
  162. end
  163. lastframe = tick()
  164. end
  165. if tossremainder then
  166. tf = 0
  167. else
  168. tf = tf - frame * math.floor(tf / frame)
  169. end
  170. end
  171. end)
  172.  
  173. function swait(num)
  174. if num == 0 or num == nil then
  175. ArtificialHB.Event:wait()
  176. else
  177. for i = 0, num do
  178. ArtificialHB.Event:wait()
  179. end
  180. end
  181. end
  182.  
  183. local RbxUtility = LoadLibrary("RbxUtility")
  184. local Create = RbxUtility.Create
  185.  
  186. function RemoveOutlines(part)
  187. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  188. end
  189.  
  190. CFuncs = {
  191. ["Part"] = {
  192. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  193. local Part = Create("Part"){
  194. Parent = Parent,
  195. Reflectance = Reflectance,
  196. Transparency = Transparency,
  197. CanCollide = false,
  198. Locked = true,
  199. BrickColor = BrickColor.new(tostring(BColor)),
  200. Name = Name,
  201. Size = Size,
  202. Material = Material,
  203. }
  204. RemoveOutlines(Part)
  205. return Part
  206. end;
  207. };
  208.  
  209. ["Mesh"] = {
  210. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  211. local Msh = Create(Mesh){
  212. Parent = Part,
  213. Offset = OffSet,
  214. Scale = Scale,
  215. }
  216. if Mesh == "SpecialMesh" then
  217. Msh.MeshType = MeshType
  218. Msh.MeshId = MeshId
  219. end
  220. return Msh
  221. end;
  222. };
  223.  
  224. ["Mesh"] = {
  225. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  226. local Msh = Create(Mesh){
  227. Parent = Part,
  228. Offset = OffSet,
  229. Scale = Scale,
  230. }
  231. if Mesh == "SpecialMesh" then
  232. Msh.MeshType = MeshType
  233. Msh.MeshId = MeshId
  234. end
  235. return Msh
  236. end;
  237. };
  238.  
  239. ["Weld"] = {
  240. Create = function(Parent, Part0, Part1, C0, C1)
  241. local Weld = Create("Weld"){
  242. Parent = Parent,
  243. Part0 = Part0,
  244. Part1 = Part1,
  245. C0 = C0,
  246. C1 = C1,
  247. }
  248. return Weld
  249. end;
  250. };
  251.  
  252. ["Sound"] = {
  253. Create = function(id, par, vol, pit)
  254. coroutine.resume(coroutine.create(function()
  255. local S = Create("Sound"){
  256. Volume = vol,
  257. Pitch = pit or 1,
  258. SoundId = id,
  259. Parent = par or workspace,
  260. }
  261. Instance.new("DistortionSoundEffect", S).Level = 1
  262. wait()
  263. S:play()
  264. game:GetService("Debris"):AddItem(S, 10)
  265. end))
  266. end;
  267. };
  268.  
  269. ["ParticleEmitter"] = {
  270. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  271. local fp = Create("ParticleEmitter"){
  272. Parent = Parent,
  273. Color = ColorSequence.new(Color1, Color2),
  274. LightEmission = LightEmission,
  275. Size = Size,
  276. Texture = Texture,
  277. Transparency = Transparency,
  278. ZOffset = ZOffset,
  279. Acceleration = Accel,
  280. Drag = Drag,
  281. LockedToPart = LockedToPart,
  282. VelocityInheritance = VelocityInheritance,
  283. EmissionDirection = EmissionDirection,
  284. Enabled = Enabled,
  285. Lifetime = LifeTime,
  286. Rate = Rate,
  287. Rotation = Rotation,
  288. RotSpeed = RotSpeed,
  289. Speed = Speed,
  290. VelocitySpread = VelocitySpread,
  291. }
  292. return fp
  293. end;
  294. };
  295. }
  296.  
  297. function rayCast(Position, Direction, Range, Ignore)
  298. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  299. end
  300.  
  301. local function GetNearest(obj, distance)
  302. local last, lastx = distance + 1
  303. for i, v in pairs(workspace:GetChildren()) do
  304. if v:IsA'Model' and v ~= Character and v:findFirstChild('Humanoid') and v:findFirstChild('Torso') and v:findFirstChild('Humanoid').Health > 0 then
  305. local t = v.Torso
  306. local dist = (t.Position - obj.Position).magnitude
  307. if dist <= distance then
  308. if dist < last then
  309. last = dist
  310. lastx = v
  311. end
  312. end
  313. end
  314. end
  315. return lastx
  316. end
  317.  
  318. --[[ Credits to Kert109 (Ninja_Deer) for the Damage function. Fenrier for the Magnitude Damage ]]--
  319.  
  320. function Damage(hit, damage, cooldown, Color1, Color2, HSound, HPitch)
  321. for i, v in pairs(hit:GetChildren()) do
  322. if v:IsA("Humanoid") and hit.Name ~= Character.Name then
  323. local find = v:FindFirstChild("DebounceHit")
  324. if not find then
  325. if v.Parent:findFirstChild("Head") then
  326. local BillG = Create("BillboardGui"){
  327. Parent = v.Parent.Head,
  328. Size = UDim2.new(1, 0, 1, 0),
  329. Adornee = v.Parent.Head,
  330. StudsOffset = Vector3.new(math.random(-3, 3), math.random(3, 5), math.random(-3, 3)),
  331. }
  332. local TL = Create("TextLabel"){
  333. Parent = BillG,
  334. Size = UDim2.new(3, 3, 3, 3),
  335. BackgroundTransparency = 1,
  336. Text = tostring(damage).."-",
  337. TextColor3 = Color1.Color,
  338. TextStrokeColor3 = Color2.Color,
  339. TextStrokeTransparency = 0,
  340. TextXAlignment = Enum.TextXAlignment.Center,
  341. TextYAlignment = Enum.TextYAlignment.Center,
  342. FontSize = Enum.FontSize.Size18,
  343. Font = "ArialBold",
  344. }
  345. coroutine.resume(coroutine.create(function()
  346. swait(1)
  347. for i = 0, 1, .1 do
  348. swait(.1)
  349. BillG.StudsOffset = BillG.StudsOffset + Vector3.new(0, .1, 0)
  350. end
  351. BillG:Destroy()
  352. end))
  353. end
  354. v.Health = v.Health - damage
  355. local bool = Create("BoolValue"){
  356. Parent = v,
  357. Name = "DebounceHit",
  358. }
  359. if HSound ~= nil and HPitch ~= nil then
  360. CFuncs["Sound"].Create(HSound, hit, 1, HPitch)
  361. end
  362. game:GetService("Debris"):AddItem(bool, cooldown)
  363. end
  364. end
  365. end
  366. end
  367.  
  368. function MagnitudeDamage(Part, magni, mindam, maxdam, Color1, Color2, HSound, HPitch)
  369. for _, c in pairs(workspace:children()) do
  370. local hum = c:findFirstChild("Humanoid")
  371. if hum ~= nil then
  372. local head = c:findFirstChild("Torso")
  373. if head ~= nil then
  374. local targ = head.Position - Part.Position
  375. local mag = targ.magnitude
  376. if mag <= magni and c.Name ~= Player.Name then
  377. Damage(head.Parent, math.random(mindam, maxdam), 0.5, Color1, Color2, HSound, HPitch)
  378. end
  379. end
  380. end
  381. end
  382. end
  383.  
  384. Handle = CFuncs["Part"].Create(m, Enum.Material.SmoothPlastic, 0, 1, "Really red", "Handle", Vector3.new(-0.399999946, 0.899999976, -0.400000095))
  385. HandleWeld = CFuncs["Weld"].Create(m, Character["Right Arm"], Handle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.199958801, -0.0500774384, -1.09998882, -1, 0, 0, 0, 0, -1, -0, -1, -0))
  386. FakeHandle = CFuncs["Part"].Create(m, Enum.Material.SmoothPlastic, 0, 1, "Really red", "FakeHandle", Vector3.new(0.399999946, 0.899999976, 0.400000095))
  387. FakeHandleWeld = CFuncs["Weld"].Create(m, Handle, FakeHandle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.199996948, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  388. Barrel = CFuncs["Part"].Create(m, Enum.Material.SmoothPlastic, 0, 1, "Really red", "Barrel", Vector3.new(0.399999946, 0.399999976, 0.400000095))
  389. BarrelWeld = CFuncs["Weld"].Create(m, FakeHandle, Barrel, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, -0.749999046, -1.50000024, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  390. Part = CFuncs["Part"].Create(m, Enum.Material.SmoothPlastic, 0, 0, "Really red", "Part", Vector3.new(-0.399999946, 0.299999952, -0.400000095))
  391. PartWeld = CFuncs["Weld"].Create(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.38, -0.300000194, 0.400000160, 1, 0, 0, 0, 1, 0, 0, 0, -1))
  392. CFuncs["Mesh"].Create("SpecialMesh", Part, Enum.MeshType.FileMesh, "rbxassetid://94219391", Vector3.new(0, 0, 0), Vector3.new(0.00200000009, 0.00700000007, 0.003000010))
  393. Part.Mesh.TextureId = "rbxassetid://94219470"
  394. Part.Mesh.Scale = Vector3.new(-1.05, 1.05, 1.05)
  395.  
  396. EffectModel = Instance.new("Model", Character)
  397. EffectModel.Name = "Effects"
  398.  
  399. Effects = {
  400. ["Block"] = {
  401. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  402. local prt = CFuncs["Part"].Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  403. prt.Anchored = true
  404. prt.CFrame = cframe
  405. local msh = CFuncs["Mesh"].Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  406. game:GetService("Debris"):AddItem(prt, 10)
  407. if Type == 1 or Type == nil then
  408. table.insert(Effects, {
  409. prt,
  410. "Block1",
  411. delay,
  412. x3,
  413. y3,
  414. z3,
  415. msh
  416. })
  417. elseif Type == 2 then
  418. table.insert(Effects, {
  419. prt,
  420. "Block2",
  421. delay,
  422. x3,
  423. y3,
  424. z3,
  425. msh
  426. })
  427. end
  428. end;
  429. };
  430.  
  431. ["Cylinder"] = {
  432. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  433. local prt = CFuncs["Part"].Create(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.2, 0.2, 0.2))
  434. prt.Anchored = true
  435. prt.CFrame = cframe
  436. local msh = CFuncs["Mesh"].Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  437. game:GetService("Debris"):AddItem(prt, 2)
  438. Effects[#Effects + 1] = {
  439. prt,
  440. "Cylinder",
  441. delay,
  442. x3,
  443. y3,
  444. z3
  445. }
  446. end;
  447. };
  448.  
  449. ["Sphere"] = {
  450. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  451. local prt = CFuncs["Part"].Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  452. prt.Anchored = true
  453. prt.CFrame = cframe
  454. local msh = CFuncs["Mesh"].Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  455. game:GetService("Debris"):AddItem(prt, 10)
  456. table.insert(Effects, {
  457. prt,
  458. "Cylinder",
  459. delay,
  460. x3,
  461. y3,
  462. z3,
  463. msh
  464. })
  465. end;
  466. };
  467.  
  468. ["Elec"] = {
  469. Create = function(cff, x, y, z)
  470. local prt = CFuncs["Part"].Create(workspace, "Neon", 0, 0, BrickColor.new("Lime green"), "Part", Vector3.new(1, 1, 1))
  471. prt.Anchored = true
  472. prt.CFrame = cff * CFrame.new(math.random(-x, x), math.random(-y, y), math.random(-z, z))
  473. prt.CFrame = CFrame.new(prt.Position)
  474. game:GetService("Debris"):AddItem(prt, 2)
  475. local xval = math.random() / 2
  476. local yval = math.random() / 2
  477. local zval = math.random() / 2
  478. local msh = CFuncs["Mesh"].Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
  479. table.insert(Effects, {
  480. prt,
  481. "Elec",
  482. 0.1,
  483. x,
  484. y,
  485. z,
  486. xval,
  487. yval,
  488. zval
  489. })
  490. end;
  491.  
  492. };
  493.  
  494. ["Ring"] = {
  495. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  496. local prt = CFuncs["Part"].Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  497. prt.Anchored = true
  498. prt.CFrame = cframe
  499. local msh = CFuncs["Mesh"].Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  500. game:GetService("Debris"):AddItem(prt, 10)
  501. table.insert(Effects, {
  502. prt,
  503. "Cylinder",
  504. delay,
  505. x3,
  506. y3,
  507. z3,
  508. msh
  509. })
  510. end;
  511. };
  512.  
  513.  
  514. ["Wave"] = {
  515. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  516. local prt = CFuncs["Part"].Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  517. prt.Anchored = true
  518. prt.CFrame = cframe
  519. local msh = CFuncs["Mesh"].Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  520. game:GetService("Debris"):AddItem(prt, 10)
  521. table.insert(Effects, {
  522. prt,
  523. "Cylinder",
  524. delay,
  525. x3,
  526. y3,
  527. z3,
  528. msh
  529. })
  530. end;
  531. };
  532.  
  533. ["Break"] = {
  534. Create = function(brickcolor, cframe, x1, y1, z1)
  535. local prt = CFuncs["Part"].Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  536. prt.Anchored = true
  537. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  538. local msh = CFuncs["Mesh"].Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  539. local num = math.random(10, 50) / 1000
  540. game:GetService("Debris"):AddItem(prt, 10)
  541. table.insert(Effects, {
  542. prt,
  543. "Shatter",
  544. num,
  545. prt.CFrame,
  546. math.random() - math.random(),
  547. 0,
  548. math.random(50, 100) / 100
  549. })
  550. end;
  551. };
  552. }
  553.  
  554. Shoot2 = function(orgpos)
  555. local MouseLook = CFrame.new((orgpos + mouse.Hit.p) / 2, mouse.Hit.p)
  556. Effects["Sphere"].Create(BrickColor.new("White"), CFrame.new(orgpos), 5, 5, 5, 3, 3, 3, 0.1)
  557. table.insert(Effects, {
  558. MouseLook.lookVector,
  559. "Shoot2",
  560. 50,
  561. orgpos,
  562. 5,
  563. 7,
  564. 0,
  565. 1,
  566. 2
  567. })
  568. end
  569.  
  570. function bulletstorm()
  571. attack = true
  572. CFuncs["Sound"].Create("rbxassetid://539881968", Torso, 1, 1)
  573. text.Text = "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
  574. wait(1.5)
  575. for i = 0, 1, 0.025 do
  576. swait()
  577. PlayAnimationFromTable({
  578. CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  579. CFrame.new(0, 1.4999907, 3.42726707e-007, 1, 0, 0, 0, 0.996194661, 0.087155968, 0, -0.087155968, 0.996194661) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  580. CFrame.new(0.431798398, 0.400000006, -0.888215482, 0.939692736, 0.342019886, 0, 0, 0, -1, -0.342019916, 0.939692736, 0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  581. CFrame.new(-0.559965074, 0.300000012, -0.828456283, 0.939692736, -0.342019886, 0, 0, 0, -1, 0.342019916, 0.939692736, 0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  582. CFrame.new(0.599619746, -1.99127948, 0, 0.996194661, -0.087155968, 0, 0.087155968, 0.996194661, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  583. CFrame.new(-0.599619746, -1.99127901, 0, 0.996194661, 0.087155968, 0, -0.087155968, 0.996194661, 0, -0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  584. }, .3, false)
  585. CFuncs["Sound"].Create("rbxassetid://539882114", Torso, 1, 1)
  586. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-20), math.rad(0)), 0.3)
  587. Shoot2(Barrel.Position)
  588. text.Text = "DOGE DUDEY"
  589. end
  590.  
  591. attack = false
  592. end
  593.  
  594. function overload()
  595. attack = true
  596. CFuncs["Sound"].Create("rbxassetid://159257147", Torso, 1, 1)
  597. text.Text = "AAAAAAAAAAAA"
  598. Shoot2(LeftArm.Position)
  599. Shoot2(RightArm.Position)
  600. Shoot2(RightLeg.Position)
  601. Shoot2(LeftLeg.Position)
  602. Shoot2(Head.Position)
  603. Shoot2(Torso.Position)
  604. wait(0)
  605. attack = false
  606. text.Text = "idiot with an inverted Doge"
  607. end
  608.  
  609. function overcharge()
  610. attack = true
  611. text.Text = "AAAAAAAAAAAA"
  612. CFuncs["Sound"].Create("rbxassetid://159257147", Torso, 1, 1)
  613. for i = 0, 1, 0.15 do
  614. swait()
  615. PlayAnimationFromTable({
  616. CFrame.new(-0.0325974114, -4.05311584e-006, 0.110728048, 0.64278698, 0, -0.766044974, 0, 1, 0, 0.766044974, 0, 0.64278698),
  617. CFrame.new(0, 1.50000095, 0, 0.64278698, 0, 0.766044974, 0, 1, 0, -0.766044974, 0, 0.64278698),
  618. CFrame.new(1.10100186, 0.535800219, -0.637803555, 0.658456147, 0.673041463, 0.336824596, 0.280167073, 0.196174845, -0.939692438, -0.698528469, 0.713113427, -0.0593915135),
  619. CFrame.new(-1.62758517, 0.073027119, -0.378663093, 0.90510416, 0.321394593, -0.278374165, -0.392632991, 0.883023262, -0.25711751, 0.163174719, 0.342016995, 0.92541796),
  620. CFrame.new(0.644929826, -1.96549833, 0.164695352, 0.962249994, -0.148305506, 0.228211343, 0.0871559754, 0.962249756, 0.257835865, -0.257834762, -0.22821258, 0.938850582),
  621. CFrame.new(-0.750219464, -1.99537396, -0.240616962, 0.862504363, 0.0818999186, 0.499378443, -0.08583197, 0.99619472, -0.0151344473, -0.498717606, -0.0298091136, 0.866251826),
  622. }, .5, false)
  623. end
  624. wait(3)
  625. Shoot2(Barrel.Position)
  626. Shoot2(Barrel.Position)
  627. Shoot2(Handle.Position)
  628. Shoot2(Handle.Position)
  629. Shoot2(FakeHandle.Position)
  630. Shoot2(FakeHandle.Position)
  631. Shoot2(Barrel.Position)
  632. Shoot2(Barrel.Position)
  633. Shoot2(Handle.Position)
  634. Shoot2(Handle.Position)
  635. Shoot2(FakeHandle.Position)
  636. Shoot2(FakeHandle.Position)
  637. Shoot2(Barrel.Position)
  638. Shoot2(Barrel.Position)
  639. Shoot2(Handle.Position)
  640. Shoot2(Handle.Position)
  641. Shoot2(FakeHandle.Position)
  642. Shoot2(FakeHandle.Position)
  643. Shoot2(Barrel.Position)
  644. Shoot2(Barrel.Position)
  645. Shoot2(Handle.Position)
  646. Shoot2(Handle.Position)
  647. Shoot2(FakeHandle.Position)
  648. Shoot2(FakeHandle.Position)
  649. for i = 0, 1, 0.15 do
  650. swait()
  651. PlayAnimationFromTable({
  652. CFrame.new(2.70828605e-006, -0.356254776, -0.071654655, 0.499999046, -1.78813579e-007, -0.866026044, 0.150384009, 0.984807789, 0.0868238211, 0.852869093, -0.173648283, 0.492402941),
  653. CFrame.new(4.34633694e-006, 1.49999607, 2.42484384e-006, 0.646143615, 0.0549410731, 0.761235893, -0.0851004422, 0.996372402, 0.000322267413, -0.758456767, -0.0649897307, 0.648474991),
  654. CFrame.new(1.86507177, 0.598104239, 0.183552518, -0.114682339, -0.981059372, -0.156110525, 0.981060445, -0.0871559381, -0.172987223, 0.156104773, -0.172992408, 0.9724738),
  655. CFrame.new(-1.52644157, 0.0874626189, -0.302744657, 0.95125103, 0.20658794, -0.229004204, -0.254887104, 0.944645047, -0.2065873, 0.173649222, 0.254886597, 0.951251268),
  656. CFrame.new(0.623469114, -1.90178788, 0.0298061967, 0.992532074, -0.0928985924, 0.079056859, 0.0757590532, 0.97739321, 0.197391063, -0.0956070125, -0.189927697, 0.977131963),
  657. CFrame.new(-0.786503196, -1.67652178, -0.389780819, 0.631277382, 0.179900557, 0.754403591, -0.0723632798, 0.982144117, -0.173656344, -0.772174001, 0.0550341941, 0.6330235),
  658. }, .35, false)
  659. text.Text = "idiot with a ShotGun"
  660. end
  661. attack = false
  662. end
  663.  
  664. function attackone()
  665. attack = true
  666. text.Text = "SHOTGUN POWERRRRR!!!3"
  667.  
  668. howtobasic1 = Instance.new("Sound", game.Players.LocalPlayer.Character.Torso)
  669. howtobasic1.Volume = 45
  670. howtobasic1.SoundId = "rbxassetid://539882069"
  671. howtobasic2 = Instance.new("Sound", game.Players.LocalPlayer.Character.Torso)
  672. howtobasic2.Volume = 45
  673. howtobasic2.SoundId = "rbxassetid://175678956"
  674. howtobasic3 = Instance.new("Sound", game.Players.LocalPlayer.Character.Torso)
  675. howtobasic3.Volume = 45
  676. howtobasic3.SoundId = "rbxassetid://539882114"
  677. howtobasic = Instance.new("Sound", game.Players.LocalPlayer.Character.Torso)
  678. howtobasic.Volume = 45
  679. howtobasic.SoundId = "rbxassetid://175678956"
  680.  
  681. local Math = math.random(1,4)
  682. if Math == 1 then
  683. howtobasic:Play()
  684. end
  685. if Math == 2 then
  686. howtobasic1:Play()
  687. end
  688. if Math == 3 then
  689. howtobasic2:Play()
  690. end
  691. if Math == 4 then
  692. howtobasic3:Play()
  693. end
  694. for i = 0, 1, 0.025 do
  695. swait()
  696. PlayAnimationFromTable({
  697. CFrame.new(-0, -0, -0, 1, 0, 0, 1, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  698. CFrame.new(0, 1.4999907, 3.42726707e-007, 1, 0, 0, 0, 0.996194661, 0.087155968, 0, -0.087155968, 0.996194661) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  699. CFrame.new(0.431798398, 0.400000006, -0.888215482, 0.939692736, 0.342019886, 0, 0, 0, -1, -0.342019916, 0.939692736, 0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  700. CFrame.new(-0.559965074, 0.300000012, -0.828456283, 0.939692736, -0.342019886, 0, 0, 0, -1, 0.342019916, 0.939692736, 0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  701. CFrame.new(0.599619746, -1.99127948, 0, 0.996194661, -0.087155968, 0, 0.087155968, 0.996194661, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  702. CFrame.new(-0.599619746, -1.99127901, 0, 0.996194661, 0.087155968, 0, -0.087155968, 0.996194661, 0, -0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  703. }, .3, false)
  704. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-20), math.rad(0)), 0.3)
  705. end
  706. CFuncs["Sound"].Create("rbxassetid://145799973", Barrel, 5, 1)
  707. text.Text = "SOME IDIOT WITH A DOGE"
  708. Shoot2(Barrel.Position)
  709. for i = 0, 1, 0.15 do
  710. swait()
  711. RootPart.Velocity = RootPart.CFrame.lookVector * -50
  712. PlayAnimationFromTable({
  713. CFrame.new(-0, -0.281125277, 0.157014638, 1, 0, -0, 0, 0.906307876, -0.422617942, 0, 0.422617942, 0.906307876) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  714. CFrame.new(0, 1.4999938, 1.05202198e-005, 1, 0, -0, 0, 0.965925813, 0.258818924, -0, -0.258818924, 0.965925813) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  715. CFrame.new(0.406597674, 0.817824185, -0.957423151, 0.939692974, 0.280165672, -0.196174338, -5.36441803e-007, -0.573575616, -0.819152534, -0.34201926, 0.769751906, -0.538984895) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  716. CFrame.new(-0.506752789, 0.775180221, -0.974653006, 0.939692974, -0.280165732, 0.196174279, 5.36441803e-007, -0.573575556, -0.819152713, 0.34201926, 0.769752145, -0.538984716) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  717. CFrame.new(0.566868722, -1.61683154, -0.13679418, 0.954536259, -0.174988821, -0.241328761, 0.172366679, 0.984509468, -0.0321052969, 0.243208498, -0.0109513998, 0.969912171) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  718. CFrame.new(-0.545306504, -1.37044179, -0.679420352, 0.996202111, 0.0754783303, 0.0434113704, -0.0434117466, 0.862729907, -0.503797948, -0.0754781216, 0.49999994, 0.862729967) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  719. }, .6, false)
  720. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-30), math.rad(-20), math.rad(0)), 0.3)
  721. end
  722. for i = 0, 1, 0.15 do
  723. swait()
  724. RootPart.Velocity = RootPart.CFrame.lookVector * -100
  725. PlayAnimationFromTable({
  726. CFrame.new(-0, -0.795007467, 0.0831707418, 1, 0, -0, 0, 0.76604414, -0.642788053, 0, 0.642788053, 0.76604414) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  727. CFrame.new(0, 1.49999774, 1.20103359e-005, 1, 0, -0, 0, 0.965925634, 0.258819878, -0, -0.258819878, 0.965925634) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  728. CFrame.new(1.70605683, 1.21151328, -0.185158521, 0.893217862, -0.29338178, -0.340718448, -0.340719074, -0.936116338, -0.0871595442, -0.293381065, 0.193941653, -0.936116695) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  729. CFrame.new(-1.69524968, 1.05172348, -0.252849877, 0.812758088, 0.493294626, 0.309975445, 0.582562625, -0.694268882, -0.422624737, 0.00672781467, 0.524071693, -0.851647615) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  730. CFrame.new(0.689150453, -1.88461804, -0.0157705098, 0.954536736, -0.174989104, -0.241326213, 0.172367141, 0.984509468, -0.0321044922, 0.243205875, -0.0109517872, 0.969912887) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  731. CFrame.new(-0.536899447, -1.34506011, -0.583059072, 0.99620223, 0.0226762109, 0.0840658173, -0.043412663, 0.966281295, 0.253803402, -0.0754759163, -0.256489068, 0.963595748) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  732. }, .2, false)
  733. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-50), math.rad(0)), 0.3)
  734. end
  735. for i = 0, 1, 0.05 do
  736. swait()
  737. RootPart.Velocity = RootPart.CFrame.lookVector * -50
  738. PlayAnimationFromTable({
  739. CFrame.new(-0, -2.09708667, 0.108620644, 1, 0, -0, 0, 0.573575675, -0.819152594, 0, 0.819152594, 0.573575675) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  740. CFrame.new(0, 1.53697455, -0.422635257, 1, 0, -0, 0, 0.766043842, 0.64278841, -0, -0.64278841, 0.766043842) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  741. CFrame.new(1.57810855, 0.650130272, 0.33058399, 0.930655897, -0.284022599, -0.230674848, 0.352510452, 0.527023435, 0.773293555, -0.0980618149, -0.800985396, 0.590598404) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  742. CFrame.new(-1.38994181, 0.87733829, 0.667137444, 0.963715255, 0.08906921, 0.251633942, -0.25866431, 0.0788001418, 0.962747812, 0.0659223944, -0.992903471, 0.0989798903) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  743. CFrame.new(0.774198592, -1.52057803, -0.607582211, 0.954536974, -0.272207022, -0.121501081, 0.172365844, 0.83655864, -0.520057499, 0.243206039, 0.475471497, 0.845445395) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  744. CFrame.new(-0.530096769, -1.05517173, -0.660005629, 0.99620223, 0.0226761587, 0.0840661526, -0.0434127897, 0.966280818, 0.253804684, -0.0754762068, -0.256490231, 0.96359539) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  745. }, .3, false)
  746. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-60), math.rad(0)), 0.3)
  747. end
  748. for i = 0, 1, 0.13 do
  749. swait()
  750. PlayAnimationFromTable({
  751. CFrame.new(-0, -1.01349139, -0.251608461, 1, 0, 0, 0, 0.707105339, 0.707108378, 0, -0.707108378, 0.707105339) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  752. CFrame.new(0.0127754211, 1.44207788, 0.0749337673, 1, 0, 0, 0, 0.939691544, -0.342023343, 0, 0.342023343, 0.939691544) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  753. CFrame.new(1.62296665, 0.191783041, -0.192457974, 0.930656254, -0.329096794, 0.159920022, 0.352511466, 0.923570275, -0.150843769, -0.098055169, 0.196757287, 0.975536823) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  754. CFrame.new(-0.870643735, 0.71258086, -0.942903101, 0.18127799, -0.372358024, -0.910213113, -0.781424284, 0.507405519, -0.363202393, 0.597088516, 0.777103186, -0.19898814) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  755. CFrame.new(0.214147568, -1.73508716, -0.0895051956, 0.924306214, 0.282332808, -0.256800473, -0.113861978, 0.846218646, 0.520528436, 0.364271581, -0.451887846, 0.814311981) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  756. CFrame.new(-0.535767198, -0.599929333, -0.996632636, 0.996202111, 0.0754788443, 0.0434101112, -0.0434126705, 0.862728953, -0.503799856, -0.0754773915, 0.500001788, 0.862729192) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  757. }, .3, false)
  758. end
  759. attack = false
  760. end
  761.  
  762. --[[Attacks]]--
  763.  
  764. mouse.Button1Down:connect(function()
  765. if attack == false and attacktype == 1 then
  766. attackone()
  767. end
  768. end)
  769.  
  770.  
  771. mouse.KeyDown:connect(function(k)
  772. k = k:lower()
  773. if attack == false and k == 'q' then
  774. bulletstorm()
  775. elseif attack == false and k == 'e' then
  776. overload()
  777. elseif attack == false and k == 'r' then
  778. overcharge()
  779. end
  780. end)
  781.  
  782. while true do
  783. swait()
  784. for i, v in pairs(Character:GetChildren()) do
  785. if v:IsA("Part") then
  786. v.Material = "SmoothPlastic"
  787. elseif v:IsA("Accessory") then
  788. v:WaitForChild("Handle").Material = "SmoothPlastic"
  789. end
  790. end
  791. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  792. velocity = RootPart.Velocity.y
  793. sine = sine + change
  794. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  795. if equipped == true or equipped == false then
  796. if RootPart.Velocity.y > 1 and hit == nil then
  797. Anim = "Jump"
  798. if attack == false then
  799. PlayAnimationFromTable({
  800. CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  801. CFrame.new(0, 1.49221826, -0.044082582, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  802. CFrame.new(1.66304386, 0.182627335, 0.00782334805, 0.883022726, -0.392632574, 0.257119894, 0.321392894, 0.905103981, 0.2783764, -0.342019886, -0.163176134, 0.925416708) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  803. CFrame.new(-1.66570556, 0.224230319, 0.110721856, 0.903736115, 0.408218145, -0.128915116, -0.34750703, 0.875426054, 0.33595863, 0.25000003, -0.258819014, 0.933012724) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  804. CFrame.new(0.499999166, -1.99999452, 4.76837158e-007, 0.984807849, -5.94328526e-007, -0.173648044, 0.0449439958, 0.965925872, 0.254886925, 0.167730987, -0.258819073, 0.951251388) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  805. CFrame.new(-0.499999404, -1.51703107, -0.129407585, 0.965925753, 6.6929374e-007, 0.258819193, -0.0669879839, 0.965925813, 0.24999994, -0.24999994, -0.258819163, 0.933012724) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  806. }, .3, false)
  807. end
  808. elseif RootPart.Velocity.y < -60 and hit == nil then
  809. Anim = "Fall"
  810. if attack == false then
  811. PlayAnimationFromTable({
  812. CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  813. CFrame.new(0, 1.49221873, -0.0440826714, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  814. CFrame.new(1.76076102, 0.406842887, 0.0212866664, 0.695482016, -0.670965135, 0.257119834, 0.611573994, 0.74059701, 0.278376371, -0.377202988, -0.0363579579, 0.925416648) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  815. CFrame.new(-1.68029141, 0.390803367, 0.155905366, 0.70961535, 0.692695498, -0.128914997, -0.625963271, 0.703777075, 0.335958213, 0.323444158, -0.157705069, 0.933012843) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  816. CFrame.new(0.693307817, -1.96826017, -0.0605875254, 0.986561239, -0.127662987, -0.101976946, 0.137943029, 0.985269904, 0.101069227, 0.0875720233, -0.113777988, 0.989639223) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  817. CFrame.new(-0.526552737, -1.81498528, -0.152177691, 0.965925574, 0.0449441113, 0.254888207, -0.066988036, 0.994663239, 0.0784704387, -0.250001162, -0.0928710476, 0.963781357) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  818. }, .3, false)
  819. end
  820. elseif Torsovelocity < 1 and hit ~= nil then
  821. Anim = "Idle"
  822. if attack == false then
  823. change = 1
  824. PlayAnimationFromTable({
  825. CFrame.new(1.22602091e-006, -0.219458103, 1.46111324e-006, 0.76604414, 0, 0.642788053, 0, 1, 0, -0.642788053, 0, 0.76604414) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  826. CFrame.new(0, 1.49999201, 0, 0.707106233, 0, -0.707107306, 0, 1, 0, 0.707107306, 0, 0.707106233) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  827. CFrame.new(0.571566343, -0.0739164352, -0.639066696, 0.939692855, 0.340718329, -0.0298085809, -0.241844058, 0.600305915, -0.762328327, -0.241844922, 0.723563433, 0.646503866) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  828. CFrame.new(-0.628383756, -0.12163578, -0.696761668, 0.939692736, -0.342020065, -5.06639481e-007, 0.196173996, 0.538984895, -0.819152653, 0.280166954, 0.769751549, 0.573575616) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  829. CFrame.new(0.624118924, -1.79798961, 0.0678238794, 0.995454907, -0.0383867361, -0.0871553123, 0.0385330059, 0.999257326, -4.09960694e-006, 0.0870907605, -0.00335427374, 0.996194839) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  830. CFrame.new(-0.53866595, -1.82180798, 0.00821807235, 0.977763176, 0.0281341001, 0.207816422, -0.0287620034, 0.999586344, -1.4934686e-007, -0.207730502, -0.00597707182, 0.978167892) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  831. }, .3, false)
  832. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-20), math.rad(0)), 0.3)
  833. end
  834. elseif Torsovelocity > 2 and hit ~= nil then
  835. Anim = "Walk"
  836. if attack == false then
  837. change = 3
  838. PlayAnimationFromTable({
  839. CFrame.new(0, -0.0240751095, -0.146390602, 1, 0, 0, 0, 0.965925872, 0.258818984, 0, -0.258818984, 0.965925872) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  840. CFrame.new(0, 1.49999237, -1.81794167e-006, 1, 0, 0, 0, 0.984807789, -0.173647881, 0, 0.173647881, 0.984807789) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  841. CFrame.new(0.172261134, 0.427689523, -1.09730911, 0.644483984, 0.748984814, -0.153825179, 0.413525045, -0.510645986, -0.753815472, -0.643146515, 0.422211438, -0.638827145) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  842. CFrame.new(-1.1922102, 0.363029838, -0.448653877, 0.935289383, -0.110854559, -0.33607316, -0.341521561, -0.531564534, -0.775114357, -0.0927196145, 0.839732468, -0.535025835) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  843. CFrame.new(.5, -1.85 - 0.5 * math.cos(sine / 8) / 2, 0 + 1.8 * math.sin(sine / 8) / 2) * angles(math.rad(-50 * math.sin(sine / 8)), math.rad(0), math.rad(0)),
  844. CFrame.new(-.5, -1.85 + 0.5 * math.cos(sine / 8) / 2, 0 - 1.8 * math.sin(sine / 8) / 2) * angles(math.rad(50 * math.sin(sine / 8)), math.rad(0), math.rad(0)),
  845. }, .3, false)
  846. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-30), math.rad(0)), 0.3)
  847. end
  848. end
  849. end
  850. if 0 < #Effects then
  851. for e = 1, #Effects do
  852. if Effects[e] ~= nil then
  853. local Thing = Effects[e]
  854. if Thing ~= nil then
  855. local Part = Thing[1]
  856. local Mode = Thing[2]
  857. local Delay = Thing[3]
  858. local IncX = Thing[4]
  859. local IncY = Thing[5]
  860. local IncZ = Thing[6]
  861. if Thing[2] == "Shoot" then
  862. local Look = Thing[1]
  863. local hit, pos = rayCast(Thing[4], Look, 15, Character)
  864. local mag = (Thing[4] - pos).magnitude
  865. Thing[9] = Thing[9] + 0.5
  866. Thing[5] = Thing[5] + 0.2
  867. Thing[6] = Thing[6] + 0.2
  868. Effects["Cylinder"].Create(BrickColor.new("White"), CFrame.new((Thing[4] + pos) / 2, pos) * angles(1.57, 0, 0), Thing[9], mag * 5, Thing[9], -0.2, 0, -0.2, 0.1)
  869. Thing[4] = Thing[4] + Look * 15
  870. Thing[3] = Thing[3] - 1
  871. if hit ~= nil then
  872. Thing[3] = 0
  873. ref = CFuncs["Part"].Create(workspace, "Neon", 0, 1, BrickColor.new("White"), "Reference", Vector3.new())
  874. ref.Anchored = true
  875. ref.CFrame = CFrame.new(pos)
  876. Effects["Sphere"].Create(BrickColor.new("Bright yellow"), CFrame.new(pos), 5, 5, 5, 1, 1, 1, 0.07)
  877. CFuncs["Sound"].Create("rbxassetid://539881968", ref, 0.1, 1)
  878. game:GetService("Debris"):AddItem(ref, 10)
  879. end
  880. if Thing[3] <= 0 then
  881. table.remove(Effects, e)
  882. end
  883. end
  884. do
  885. if Thing[2] == "Shoot2" then
  886. local Look = Thing[1]
  887. local hit, pos = rayCast(Thing[4], Look, 3, Character)
  888. local mag = (Thing[4] - pos).magnitude
  889. Thing[9] = Thing[9] + 0.5
  890. Thing[5] = Thing[5] + 0.2
  891. Thing[6] = Thing[6] + 0.2
  892. Effects["Sphere"].Create(BrickColor.new("Bright yellow"), CFrame.new((Thing[4] + pos) / 2, pos), 25, 25, 25, -5, -5, -5, 0.2)
  893. Thing[4] = Thing[4] + Look * 3
  894. Thing[3] = Thing[3] + 5
  895. if hit ~= nil then
  896. Thing[3] = 0
  897. ref = CFuncs["Part"].Create(workspace, "Neon", 0, 1, BrickColor.new("White"), "Reference", Vector3.new())
  898. ref.Anchored = true
  899. ref.CFrame = CFrame.new(pos)
  900. Effects["Sphere"].Create(BrickColor.new("Really yellow"), CFrame.new(pos), 25, 25, 25, 5, 5, 5, 0.01)
  901. Effects["Sphere"].Create(BrickColor.new("Bright yellow"), CFrame.new(pos), 10, 10, 10, 15, 15, 15, 0.01)
  902. Effects["Block"].Create(BrickColor.new("White"), CFrame.new(pos), 10, 10, 10, 15, 15, 15, 0.01, 1)
  903. Effects["Wave"].Create(BrickColor.new("Really red"), CFrame.new(pos), 2, 2, 2, 3, 3, 3, 0.01)
  904. CFuncs["Sound"].Create("rbxassetid://151778863", ref, 1, 1)
  905. CFuncs["Sound"].Create("rbxassetid://151778863", Sphere, 0.5, 1)
  906. CFuncs["Sound"].Create("rbxassetid://151778863", Sphere, 0.1, 1)
  907. local e = Instance.new("Explosion", ref)
  908. e.Position = ref.Position
  909. e.BlastRadius = 400
  910. e.DestroyJointRadiusPercent = 400
  911. e.Visible = false
  912. e.ExplosionType = "CratersAndDebris"
  913. game:GetService("Debris"):AddItem(ref, 2)
  914. end
  915. if Thing[3] <= 0 then
  916. table.remove(Effects, e)
  917. end
  918. end
  919. do
  920. do
  921. if Thing[2] ~= "Shoot" and Thing[2] ~= "DecreaseStat" and Thing[2] ~= "showDamage" and Thing[2] ~= "Shoot2" then
  922. if Thing[1].Transparency <= 1 then
  923. if Thing[2] == "Block1" then
  924. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  925. Mesh = Thing[7]
  926. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  927. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  928. else
  929. if Thing[2] == "Block2" then
  930. Thing[1].CFrame = Thing[1].CFrame
  931. Mesh = Thing[7]
  932. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  933. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  934. else
  935. if Thing[2] == "Block3" then
  936. Thing[8].C0 = CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) * Thing[9]
  937. Mesh = Thing[7]
  938. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  939. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  940. else
  941. if Thing[2] == "Cylinder" then
  942. Mesh = Thing[7]
  943. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  944. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  945. else
  946. if Thing[2] == "Cylinder2" then
  947. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, Thing[8], 0)
  948. Mesh = Thing[7]
  949. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  950. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  951. else
  952. if Thing[2] == "Blood" then
  953. Mesh = Thing[7]
  954. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 0.5, 0)
  955. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  956. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  957. else
  958. if Thing[2] == "Elec" then
  959. Mesh = Thing[10]
  960. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  961. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  962. else
  963. if Thing[2] == "Disappear" then
  964. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  965. end
  966. end
  967. end
  968. end
  969. end
  970. end
  971. end
  972. end
  973. else
  974. Part.Parent = nil
  975. table.remove(Effects, e)
  976. end
  977. end
  978. end
  979. end
  980. end
  981. end
  982. end
  983. end
  984. end
  985. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement