Advertisement
MrSlakyx

wwowowoowowow

Jun 11th, 2018
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 49.97 KB | None | 0 0
  1. p = game.Players.LocalPlayer
  2. char = p.Character
  3. local txt = Instance.new("BillboardGui", char)
  4. txt.Adornee = char .Head
  5. txt.Name = "_status"
  6. txt.Size = UDim2.new(2, 0, 1.2, 0)
  7. txt.StudsOffset = Vector3.new(-9, 8, 0)
  8. local text = Instance.new("TextLabel", txt)
  9. text.Size = UDim2.new(10, 0, 7, 0)
  10. text.FontSize = "Size24"
  11. text.TextScaled = true
  12. text.TextTransparency = 0
  13. text.BackgroundTransparency = 1
  14. text.TextTransparency = 0
  15. text.TextStrokeTransparency = 1
  16. text.Font = "Arcade"
  17. text.TextStrokeColor3 = Color3.new(0,0,255)
  18.  
  19. v=Instance.new("Part")
  20. v.Name = "ColorBrick"
  21. v.Parent=p.Character
  22. v.FormFactor="Symmetric"
  23. v.Anchored=true
  24. v.CanCollide=false
  25. v.BottomSurface="Smooth"
  26. v.TopSurface="Smooth"
  27. v.Size=Vector3.new(10,5,3)
  28. v.Transparency=1
  29. v.CFrame=char.Torso.CFrame
  30. v.BrickColor=BrickColor.new(CV)
  31. v.Transparency=1
  32. text.TextColor3 = Color3.new(255,255,0)
  33. v.Shape="Block"
  34. text.Text = "JOJO BIZZARE ADVENTURE GUN"
  35. wait(1 / 60)
  36. Effects = { }
  37. local Player = game.Players.localPlayer
  38. local Character = Player.Character
  39. local Humanoid = Character.Humanoid
  40. local mouse = Player:GetMouse()
  41. local m = Instance.new('Model', Character)
  42. m.Name = "WeaponModel"
  43. local LeftArm = Character["Left Arm"]
  44. local RightArm = Character["Right Arm"]
  45. local LeftLeg = Character["Left Leg"]
  46. local RightLeg = Character["Right Leg"]
  47. local Head = Character.Head
  48. local Torso = Character.Torso
  49. local cam = game.Workspace.CurrentCamera
  50. local RootPart = Character.HumanoidRootPart
  51. local RootJoint = RootPart.RootJoint
  52. local equipped = false
  53. local attack = false
  54. local Anim = 'Idle'
  55. local idle = 0
  56. local attacktype = 1
  57. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  58. local velocity = RootPart.Velocity.y
  59. local sine = 0
  60. local change = 1
  61. local grabbed = false
  62. local cn = CFrame.new
  63. local mr = math.rad
  64. local angles = CFrame.Angles
  65. local ud = UDim2.new
  66. local c3 = Color3.new
  67. Instance.new("ForceField", game.Players.LocalPlayer.Character)
  68. local s = Instance.new("Sound",Character)
  69. s.Name = "BGMusic"
  70. s.SoundId = "rbxassetid://519992991"
  71. s.Pitch = 1
  72. s.Volume = 0.25
  73. s.Looped = true
  74. s.archivable = false
  75. wait(0.1)
  76. s:play()
  77.  
  78. Humanoid.Animator.Parent = nil
  79. Character.Animate.Parent = nil
  80.  
  81. local newMotor = function(part0, part1, c0, c1)
  82. local w = Instance.new('Motor', part0)
  83. w.Part0 = part0
  84. w.Part1 = part1
  85. w.C0 = c0
  86. w.C1 = c1
  87. return w
  88. end
  89.  
  90. function clerp(a, b, t)
  91. return a:lerp(b, t)
  92. end
  93.  
  94. RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  95. NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  96.  
  97. local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
  98. local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
  99. local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
  100. local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
  101. RootJoint.C1 = CFrame.new(0, 0, 0)
  102. RootJoint.C0 = CFrame.new(0, 0, 0)
  103. Torso.Neck.C1 = CFrame.new(0, 0, 0)
  104. Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
  105.  
  106. local rarmc1 = RW.C1
  107. local larmc1 = LW.C1
  108. local rlegc1 = RH.C1
  109. local llegc1 = LH.C1
  110.  
  111. local resetc1 = false
  112.  
  113. function PlayAnimationFromTable(table, speed, bool)
  114. RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
  115. Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed)
  116. RW.C0 = clerp(RW.C0, table[3], speed)
  117. LW.C0 = clerp(LW.C0, table[4], speed)
  118. RH.C0 = clerp(RH.C0, table[5], speed)
  119. LH.C0 = clerp(LH.C0, table[6], speed)
  120. if bool == true then
  121. if resetc1 == false then
  122. resetc1 = true
  123. RootJoint.C1 = RootJoint.C1
  124. Torso.Neck.C1 = Torso.Neck.C1
  125. RW.C1 = rarmc1
  126. LW.C1 = larmc1
  127. RH.C1 = rlegc1
  128. LH.C1 = llegc1
  129. end
  130. end
  131. end
  132.  
  133. Char = char
  134.  
  135. --[[Credits to SazErenos for his Artificial Heartbeat]]--
  136.  
  137. ArtificialHB = Instance.new("BindableEvent", script)
  138. ArtificialHB.Name = "Heartbeat"
  139.  
  140. script:WaitForChild("Heartbeat")
  141.  
  142. frame = 1 / 30
  143. tf = 0
  144. allowframeloss = false
  145. tossremainder = false
  146. lastframe = tick()
  147. script.Heartbeat:Fire()
  148.  
  149. game:GetService("RunService").Heartbeat:connect(function(s, p)
  150. tf = tf + s
  151. if tf >= frame then
  152. if allowframeloss then
  153. script.Heartbeat:Fire()
  154. lastframe = tick()
  155. else
  156. for i = 1, math.floor(tf / frame) do
  157. script.Heartbeat:Fire()
  158. end
  159. lastframe = tick()
  160. end
  161. if tossremainder then
  162. tf = 0
  163. else
  164. tf = tf - frame * math.floor(tf / frame)
  165. end
  166. end
  167. end)
  168.  
  169. function swait(num)
  170. if num == 0 or num == nil then
  171. ArtificialHB.Event:wait()
  172. else
  173. for i = 0, num do
  174. ArtificialHB.Event:wait()
  175. end
  176. end
  177. end
  178.  
  179. local RbxUtility = LoadLibrary("RbxUtility")
  180. local Create = RbxUtility.Create
  181.  
  182. function RemoveOutlines(part)
  183. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  184. end
  185.  
  186. CFuncs = {
  187. ["Part"] = {
  188. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  189. local Part = Create("Part"){
  190. Parent = Parent,
  191. Reflectance = Reflectance,
  192. Transparency = Transparency,
  193. CanCollide = false,
  194. Locked = true,
  195. BrickColor = BrickColor.new(tostring(BColor)),
  196. Name = Name,
  197. Size = Size,
  198. Material = Material,
  199. }
  200. RemoveOutlines(Part)
  201. return Part
  202. end;
  203. };
  204.  
  205. ["Mesh"] = {
  206. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  207. local Msh = Create(Mesh){
  208. Parent = Part,
  209. Offset = OffSet,
  210. Scale = Scale,
  211. }
  212. if Mesh == "SpecialMesh" then
  213. Msh.MeshType = MeshType
  214. Msh.MeshId = MeshId
  215. end
  216. return Msh
  217. end;
  218. };
  219.  
  220. ["Mesh"] = {
  221. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  222. local Msh = Create(Mesh){
  223. Parent = Part,
  224. Offset = OffSet,
  225. Scale = Scale,
  226. }
  227. if Mesh == "SpecialMesh" then
  228. Msh.MeshType = MeshType
  229. Msh.MeshId = MeshId
  230. end
  231. return Msh
  232. end;
  233. };
  234.  
  235. ["Weld"] = {
  236. Create = function(Parent, Part0, Part1, C0, C1)
  237. local Weld = Create("Weld"){
  238. Parent = Parent,
  239. Part0 = Part0,
  240. Part1 = Part1,
  241. C0 = C0,
  242. C1 = C1,
  243. }
  244. return Weld
  245. end;
  246. };
  247.  
  248. ["Sound"] = {
  249. Create = function(id, par, vol, pit)
  250. coroutine.resume(coroutine.create(function()
  251. local S = Create("Sound"){
  252. Volume = vol,
  253. Pitch = pit or 1,
  254. SoundId = id,
  255. Parent = par or workspace,
  256. }
  257. Instance.new("DistortionSoundEffect", S).Level = 1
  258. wait()
  259. S:play()
  260. game:GetService("Debris"):AddItem(S, 10)
  261. end))
  262. end;
  263. };
  264.  
  265. ["ParticleEmitter"] = {
  266. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  267. local fp = Create("ParticleEmitter"){
  268. Parent = Parent,
  269. Color = ColorSequence.new(Color1, Color2),
  270. LightEmission = LightEmission,
  271. Size = Size,
  272. Texture = Texture,
  273. Transparency = Transparency,
  274. ZOffset = ZOffset,
  275. Acceleration = Accel,
  276. Drag = Drag,
  277. LockedToPart = LockedToPart,
  278. VelocityInheritance = VelocityInheritance,
  279. EmissionDirection = EmissionDirection,
  280. Enabled = Enabled,
  281. Lifetime = LifeTime,
  282. Rate = Rate,
  283. Rotation = Rotation,
  284. RotSpeed = RotSpeed,
  285. Speed = Speed,
  286. VelocitySpread = VelocitySpread,
  287. }
  288. return fp
  289. end;
  290. };
  291. }
  292.  
  293. function rayCast(Position, Direction, Range, Ignore)
  294. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  295. end
  296.  
  297. local function GetNearest(obj, distance)
  298. local last, lastx = distance + 1
  299. for i, v in pairs(workspace:GetChildren()) do
  300. if v:IsA'Model' and v ~= Character and v:findFirstChild('Humanoid') and v:findFirstChild('Torso') and v:findFirstChild('Humanoid').Health > 0 then
  301. local t = v.Torso
  302. local dist = (t.Position - obj.Position).magnitude
  303. if dist <= distance then
  304. if dist < last then
  305. last = dist
  306. lastx = v
  307. end
  308. end
  309. end
  310. end
  311. return lastx
  312. end
  313.  
  314. --[[ Credits to Kert109 (Ninja_Deer) for the Damage function. Fenrier for the Magnitude Damage ]]--
  315.  
  316. function Damage(hit, damage, cooldown, Color1, Color2, HSound, HPitch)
  317. for i, v in pairs(hit:GetChildren()) do
  318. if v:IsA("Humanoid") and hit.Name ~= Character.Name then
  319. local find = v:FindFirstChild("DebounceHit")
  320. if not find then
  321. if v.Parent:findFirstChild("Head") then
  322. local BillG = Create("BillboardGui"){
  323. Parent = v.Parent.Head,
  324. Size = UDim2.new(1, 0, 1, 0),
  325. Adornee = v.Parent.Head,
  326. StudsOffset = Vector3.new(math.random(-3, 3), math.random(3, 5), math.random(-3, 3)),
  327. }
  328. local TL = Create("TextLabel"){
  329. Parent = BillG,
  330. Size = UDim2.new(3, 3, 3, 3),
  331. BackgroundTransparency = 1,
  332. Text = tostring(damage).."-",
  333. TextColor3 = Color1.Color,
  334. TextStrokeColor3 = Color2.Color,
  335. TextStrokeTransparency = 0,
  336. TextXAlignment = Enum.TextXAlignment.Center,
  337. TextYAlignment = Enum.TextYAlignment.Center,
  338. FontSize = Enum.FontSize.Size18,
  339. Font = "ArialBold",
  340. }
  341. coroutine.resume(coroutine.create(function()
  342. swait(1)
  343. for i = 0, 1, .1 do
  344. swait(.1)
  345. BillG.StudsOffset = BillG.StudsOffset + Vector3.new(0, .1, 0)
  346. end
  347. BillG:Destroy()
  348. end))
  349. end
  350. v.Health = v.Health - damage
  351. local bool = Create("BoolValue"){
  352. Parent = v,
  353. Name = "DebounceHit",
  354. }
  355. if HSound ~= nil and HPitch ~= nil then
  356. CFuncs["Sound"].Create(HSound, hit, 1, HPitch)
  357. end
  358. game:GetService("Debris"):AddItem(bool, cooldown)
  359. end
  360. end
  361. end
  362. end
  363.  
  364. function MagnitudeDamage(Part, magni, mindam, maxdam, Color1, Color2, HSound, HPitch)
  365. for _, c in pairs(workspace:children()) do
  366. local hum = c:findFirstChild("Humanoid")
  367. if hum ~= nil then
  368. local head = c:findFirstChild("Torso")
  369. if head ~= nil then
  370. local targ = head.Position - Part.Position
  371. local mag = targ.magnitude
  372. if mag <= magni and c.Name ~= Player.Name then
  373. Damage(head.Parent, math.random(mindam, maxdam), 0.5, Color1, Color2, HSound, HPitch)
  374. end
  375. end
  376. end
  377. end
  378. end
  379.  
  380. Handle = CFuncs["Part"].Create(m, Enum.Material.SmoothPlastic, 0, 1, "Medium stone grey", "Handle", Vector3.new(-0.399999946, 0.899999976, -0.400000095))
  381. 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))
  382. FakeHandle = CFuncs["Part"].Create(m, Enum.Material.SmoothPlastic, 0, 1, "Medium stone grey", "FakeHandle", Vector3.new(0.399999946, 0.899999976, 0.400000095))
  383. 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))
  384. Barrel = CFuncs["Part"].Create(m, Enum.Material.SmoothPlastic, 0, 1, "Medium stone grey", "Barrel", Vector3.new(0.399999946, 0.399999976, 0.400000095))
  385. 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))
  386. Part = CFuncs["Part"].Create(m, Enum.Material.SmoothPlastic, 0, 0, "Medium stone grey", "Part", Vector3.new(-0.399999946, 0.299999952, -0.400000095))
  387. 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))
  388. CFuncs["Mesh"].Create("SpecialMesh", Part, Enum.MeshType.FileMesh, "rbxassetid://431951823", Vector3.new(0, 0, 0), Vector3.new(0.00200000009, 0.00700000007, 0.003000010))
  389. Part.Mesh.TextureId = "rbxassetid://431951829"
  390. Part.Mesh.Scale = Vector3.new(-0.2, 0.2, -0.2)
  391.  
  392. EffectModel = Instance.new("Model", Character)
  393. EffectModel.Name = "Effects"
  394.  
  395. Effects = {
  396. ["Block"] = {
  397. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  398. local prt = CFuncs["Part"].Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  399. prt.Anchored = true
  400. prt.CFrame = cframe
  401. local msh = CFuncs["Mesh"].Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  402. game:GetService("Debris"):AddItem(prt, 10)
  403. if Type == 1 or Type == nil then
  404. table.insert(Effects, {
  405. prt,
  406. "Block1",
  407. delay,
  408. x3,
  409. y3,
  410. z3,
  411. msh
  412. })
  413. elseif Type == 2 then
  414. table.insert(Effects, {
  415. prt,
  416. "Block2",
  417. delay,
  418. x3,
  419. y3,
  420. z3,
  421. msh
  422. })
  423. end
  424. end;
  425. };
  426.  
  427. ["Cylinder"] = {
  428. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  429. local prt = CFuncs["Part"].Create(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.2, 0.2, 0.2))
  430. prt.Anchored = true
  431. prt.CFrame = cframe
  432. local msh = CFuncs["Mesh"].Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  433. game:GetService("Debris"):AddItem(prt, 2)
  434. Effects[#Effects + 1] = {
  435. prt,
  436. "Cylinder",
  437. delay,
  438. x3,
  439. y3,
  440. z3
  441. }
  442. end;
  443. };
  444.  
  445. ["Sphere"] = {
  446. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  447. local prt = CFuncs["Part"].Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  448. prt.Anchored = true
  449. prt.CFrame = cframe
  450. local msh = CFuncs["Mesh"].Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  451. game:GetService("Debris"):AddItem(prt, 10)
  452. table.insert(Effects, {
  453. prt,
  454. "Cylinder",
  455. delay,
  456. x3,
  457. y3,
  458. z3,
  459. msh
  460. })
  461. end;
  462. };
  463.  
  464. ["Elec"] = {
  465. Create = function(cff, x, y, z)
  466. local prt = CFuncs["Part"].Create(workspace, "Neon", 0, 0, BrickColor.new("Lime green"), "Part", Vector3.new(1, 1, 1))
  467. prt.Anchored = true
  468. prt.CFrame = cff * CFrame.new(math.random(-x, x), math.random(-y, y), math.random(-z, z))
  469. prt.CFrame = CFrame.new(prt.Position)
  470. game:GetService("Debris"):AddItem(prt, 2)
  471. local xval = math.random() / 2
  472. local yval = math.random() / 2
  473. local zval = math.random() / 2
  474. local msh = CFuncs["Mesh"].Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
  475. table.insert(Effects, {
  476. prt,
  477. "Elec",
  478. 0.1,
  479. x,
  480. y,
  481. z,
  482. xval,
  483. yval,
  484. zval
  485. })
  486. end;
  487.  
  488. };
  489.  
  490. ["Ring"] = {
  491. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  492. local prt = CFuncs["Part"].Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  493. prt.Anchored = true
  494. prt.CFrame = cframe
  495. local msh = CFuncs["Mesh"].Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  496. game:GetService("Debris"):AddItem(prt, 10)
  497. table.insert(Effects, {
  498. prt,
  499. "Cylinder",
  500. delay,
  501. x3,
  502. y3,
  503. z3,
  504. msh
  505. })
  506. end;
  507. };
  508.  
  509.  
  510. ["Wave"] = {
  511. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  512. local prt = CFuncs["Part"].Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  513. prt.Anchored = true
  514. prt.CFrame = cframe
  515. local msh = CFuncs["Mesh"].Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  516. game:GetService("Debris"):AddItem(prt, 10)
  517. table.insert(Effects, {
  518. prt,
  519. "Cylinder",
  520. delay,
  521. x3,
  522. y3,
  523. z3,
  524. msh
  525. })
  526. end;
  527. };
  528.  
  529. ["Break"] = {
  530. Create = function(brickcolor, cframe, x1, y1, z1)
  531. local prt = CFuncs["Part"].Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  532. prt.Anchored = true
  533. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  534. local msh = CFuncs["Mesh"].Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  535. local num = math.random(10, 50) / 1000
  536. game:GetService("Debris"):AddItem(prt, 10)
  537. table.insert(Effects, {
  538. prt,
  539. "Shatter",
  540. num,
  541. prt.CFrame,
  542. math.random() - math.random(),
  543. 0,
  544. math.random(50, 100) / 100
  545. })
  546. end;
  547. };
  548. }
  549.  
  550. Shoot2 = function(orgpos)
  551. local MouseLook = CFrame.new((orgpos + mouse.Hit.p) / 2, mouse.Hit.p)
  552. Effects["Sphere"].Create(BrickColor.new("White"), CFrame.new(orgpos), 5, 5, 5, 3, 3, 3, 0.1)
  553. table.insert(Effects, {
  554. MouseLook.lookVector,
  555. "Shoot2",
  556. 50,
  557. orgpos,
  558. 5,
  559. 7,
  560. 0,
  561. 1,
  562. 2
  563. })
  564. end
  565.  
  566. function bulletstorm()
  567. attack = true
  568. CFuncs["Sound"].Create("rbxassetid://539881968", Torso, 1, 1)
  569. text.Text = "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
  570. wait(1.5)
  571. for i = 0, 1, 0.025 do
  572. swait()
  573. PlayAnimationFromTable({
  574. CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  575. 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),
  576. 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),
  577. 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),
  578. 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),
  579. 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),
  580. }, .3, false)
  581. CFuncs["Sound"].Create("rbxassetid://539882114", Torso, 1, 1)
  582. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-20), math.rad(0)), 0.3)
  583. Shoot2(Barrel.Position)
  584. text.Text = "guy with an inverted sniper rifle"
  585. end
  586.  
  587. attack = false
  588. end
  589.  
  590. function overload()
  591. attack = true
  592. CFuncs["Sound"].Create("rbxassetid://159257147", Torso, 1, 1)
  593. text.Text = "AAAAAAAAAAAA"
  594. Shoot2(LeftArm.Position)
  595. Shoot2(RightArm.Position)
  596. Shoot2(RightLeg.Position)
  597. Shoot2(LeftLeg.Position)
  598. Shoot2(Head.Position)
  599. Shoot2(Torso.Position)
  600. wait(0)
  601. attack = false
  602. text.Text = "guy with an inverted sniper rifle"
  603. end
  604.  
  605. function overcharge()
  606. attack = true
  607. text.Text = "AAAAAAAAAAAA"
  608. CFuncs["Sound"].Create("rbxassetid://159257147", Torso, 1, 1)
  609. for i = 0, 1, 0.15 do
  610. swait()
  611. PlayAnimationFromTable({
  612. CFrame.new(-0.0325974114, -4.05311584e-006, 0.110728048, 0.64278698, 0, -0.766044974, 0, 1, 0, 0.766044974, 0, 0.64278698),
  613. CFrame.new(0, 1.50000095, 0, 0.64278698, 0, 0.766044974, 0, 1, 0, -0.766044974, 0, 0.64278698),
  614. 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),
  615. 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),
  616. 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),
  617. 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),
  618. }, .5, false)
  619. end
  620. wait(3)
  621. Shoot2(Barrel.Position)
  622. Shoot2(Barrel.Position)
  623. Shoot2(Handle.Position)
  624. Shoot2(Handle.Position)
  625. Shoot2(FakeHandle.Position)
  626. Shoot2(FakeHandle.Position)
  627. Shoot2(Barrel.Position)
  628. Shoot2(Barrel.Position)
  629. Shoot2(Handle.Position)
  630. Shoot2(Handle.Position)
  631. Shoot2(FakeHandle.Position)
  632. Shoot2(FakeHandle.Position)
  633. Shoot2(Barrel.Position)
  634. Shoot2(Barrel.Position)
  635. Shoot2(Handle.Position)
  636. Shoot2(Handle.Position)
  637. Shoot2(FakeHandle.Position)
  638. Shoot2(FakeHandle.Position)
  639. Shoot2(Barrel.Position)
  640. Shoot2(Barrel.Position)
  641. Shoot2(Handle.Position)
  642. Shoot2(Handle.Position)
  643. Shoot2(FakeHandle.Position)
  644. Shoot2(FakeHandle.Position)
  645. for i = 0, 1, 0.15 do
  646. swait()
  647. PlayAnimationFromTable({
  648. CFrame.new(2.70828605e-006, -0.256154776, -0.071654655, 0.499999046, -1.78813579e-007, -0.866026044, 0.150384009, 0.984807789, 0.0868238211, 0.852869093, -0.173648283, 0.492402941),
  649. 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),
  650. 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),
  651. 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),
  652. 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),
  653. 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),
  654. }, .35, false)
  655. text.Text = "guy with an inverted sniper rifle"
  656. end
  657. attack = false
  658. end
  659.  
  660. function attackone()
  661. attack = true
  662. text.Text = "i have ebola"
  663.  
  664. howtobasic1 = Instance.new("Sound", game.Players.LocalPlayer.Character.Torso)
  665. howtobasic1.Volume = 45
  666. howtobasic1.SoundId = "rbxassetid://539882069"
  667. howtobasic2 = Instance.new("Sound", game.Players.LocalPlayer.Character.Torso)
  668. howtobasic2.Volume = 45
  669. howtobasic2.SoundId = "rbxassetid://539881968"
  670. howtobasic3 = Instance.new("Sound", game.Players.LocalPlayer.Character.Torso)
  671. howtobasic3.Volume = 45
  672. howtobasic3.SoundId = "rbxassetid://539882114"
  673. howtobasic = Instance.new("Sound", game.Players.LocalPlayer.Character.Torso)
  674. howtobasic.Volume = 45
  675. howtobasic.SoundId = "rbxassetid://539881843"
  676.  
  677. local Math = math.random(1,4)
  678. if Math == 1 then
  679. howtobasic:Play()
  680. end
  681. if Math == 2 then
  682. howtobasic1:Play()
  683. end
  684. if Math == 3 then
  685. howtobasic2:Play()
  686. end
  687. if Math == 4 then
  688. howtobasic3:Play()
  689. end
  690. for i = 0, 1, 0.025 do
  691. swait()
  692. PlayAnimationFromTable({
  693. CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  694. 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),
  695. 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),
  696. 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),
  697. 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),
  698. 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),
  699. }, .3, false)
  700. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-20), math.rad(0)), 0.3)
  701. end
  702. CFuncs["Sound"].Create("rbxassetid://401120618", Barrel, 5, 1)
  703. text.Text = "anti g@y sniper"
  704. Shoot2(Barrel.Position)
  705. for i = 0, 1, 0.15 do
  706. swait()
  707. RootPart.Velocity = RootPart.CFrame.lookVector * -50
  708. PlayAnimationFromTable({
  709. 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),
  710. 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),
  711. 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),
  712. 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),
  713. 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),
  714. 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),
  715. }, .6, false)
  716. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-30), math.rad(-20), math.rad(0)), 0.3)
  717. end
  718. for i = 0, 1, 0.15 do
  719. swait()
  720. RootPart.Velocity = RootPart.CFrame.lookVector * -100
  721. PlayAnimationFromTable({
  722. 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),
  723. 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),
  724. 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),
  725. 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),
  726. 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),
  727. 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),
  728. }, .2, false)
  729. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-50), math.rad(0)), 0.3)
  730. end
  731. for i = 0, 1, 0.05 do
  732. swait()
  733. RootPart.Velocity = RootPart.CFrame.lookVector * -50
  734. PlayAnimationFromTable({
  735. 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),
  736. 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),
  737. 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),
  738. 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),
  739. 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),
  740. 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),
  741. }, .3, false)
  742. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-60), math.rad(0)), 0.3)
  743. end
  744. for i = 0, 1, 0.13 do
  745. swait()
  746. PlayAnimationFromTable({
  747. 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),
  748. 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),
  749. 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),
  750. 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),
  751. 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),
  752. 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),
  753. }, .3, false)
  754. end
  755. attack = false
  756. end
  757.  
  758. --[[Attacks]]--
  759.  
  760. mouse.Button1Down:connect(function()
  761. if attack == false and attacktype == 1 then
  762. attackone()
  763. end
  764. end)
  765.  
  766.  
  767. mouse.KeyDown:connect(function(k)
  768. k = k:lower()
  769. if attack == false and k == 'q' then
  770. bulletstorm()
  771. elseif attack == false and k == 'e' then
  772. overload()
  773. elseif attack == false and k == 'r' then
  774. overcharge()
  775. end
  776. end)
  777.  
  778. while true do
  779. swait()
  780. for i, v in pairs(Character:GetChildren()) do
  781. if v:IsA("Part") then
  782. v.Material = "SmoothPlastic"
  783. elseif v:IsA("Accessory") then
  784. v:WaitForChild("Handle").Material = "SmoothPlastic"
  785. end
  786. end
  787. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  788. velocity = RootPart.Velocity.y
  789. sine = sine + change
  790. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  791. if equipped == true or equipped == false then
  792. if RootPart.Velocity.y > 1 and hit == nil then
  793. Anim = "Jump"
  794. if attack == false then
  795. PlayAnimationFromTable({
  796. CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  797. 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),
  798. 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),
  799. 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),
  800. 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),
  801. 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),
  802. }, .3, false)
  803. end
  804. elseif RootPart.Velocity.y < -60 and hit == nil then
  805. Anim = "Fall"
  806. if attack == false then
  807. PlayAnimationFromTable({
  808. CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  809. 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),
  810. 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),
  811. 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),
  812. 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),
  813. 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),
  814. }, .3, false)
  815. end
  816. elseif Torsovelocity < 1 and hit ~= nil then
  817. Anim = "Idle"
  818. if attack == false then
  819. change = 1
  820. PlayAnimationFromTable({
  821. 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),
  822. 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),
  823. 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),
  824. 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),
  825. 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),
  826. 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),
  827. }, .3, false)
  828. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-20), math.rad(0)), 0.3)
  829. end
  830. elseif Torsovelocity > 2 and hit ~= nil then
  831. Anim = "Walk"
  832. if attack == false then
  833. change = 3
  834. PlayAnimationFromTable({
  835. 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),
  836. 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),
  837. 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),
  838. 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),
  839. 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)),
  840. 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)),
  841. }, .3, false)
  842. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-30), math.rad(0)), 0.3)
  843. end
  844. end
  845. end
  846. if 0 < #Effects then
  847. for e = 1, #Effects do
  848. if Effects[e] ~= nil then
  849. local Thing = Effects[e]
  850. if Thing ~= nil then
  851. local Part = Thing[1]
  852. local Mode = Thing[2]
  853. local Delay = Thing[3]
  854. local IncX = Thing[4]
  855. local IncY = Thing[5]
  856. local IncZ = Thing[6]
  857. if Thing[2] == "Shoot" then
  858. local Look = Thing[1]
  859. local hit, pos = rayCast(Thing[4], Look, 15, Character)
  860. local mag = (Thing[4] - pos).magnitude
  861. Thing[9] = Thing[9] + 0.5
  862. Thing[5] = Thing[5] + 0.2
  863. Thing[6] = Thing[6] + 0.2
  864. 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)
  865. Thing[4] = Thing[4] + Look * 15
  866. Thing[3] = Thing[3] - 1
  867. if hit ~= nil then
  868. Thing[3] = 0
  869. ref = CFuncs["Part"].Create(workspace, "Neon", 0, 1, BrickColor.new("White"), "Reference", Vector3.new())
  870. ref.Anchored = true
  871. ref.CFrame = CFrame.new(pos)
  872. Effects["Sphere"].Create(BrickColor.new("Bright yellow"), CFrame.new(pos), 5, 5, 5, 1, 1, 1, 0.07)
  873. CFuncs["Sound"].Create("rbxassetid://539881968", ref, 0.1, 1)
  874. game:GetService("Debris"):AddItem(ref, 10)
  875. end
  876. if Thing[3] <= 0 then
  877. table.remove(Effects, e)
  878. end
  879. end
  880. do
  881. if Thing[2] == "Shoot2" then
  882. local Look = Thing[1]
  883. local hit, pos = rayCast(Thing[4], Look, 3, Character)
  884. local mag = (Thing[4] - pos).magnitude
  885. Thing[9] = Thing[9] + 0.5
  886. Thing[5] = Thing[5] + 0.2
  887. Thing[6] = Thing[6] + 0.2
  888. Effects["Sphere"].Create(BrickColor.new("Bright yellow"), CFrame.new((Thing[4] + pos) / 2, pos), 25, 25, 25, -5, -5, -5, 0.2)
  889. Thing[4] = Thing[4] + Look * 3
  890. Thing[3] = Thing[3] + 5
  891. if hit ~= nil then
  892. Thing[3] = 0
  893. ref = CFuncs["Part"].Create(workspace, "Neon", 0, 1, BrickColor.new("White"), "Reference", Vector3.new())
  894. ref.Anchored = true
  895. ref.CFrame = CFrame.new(pos)
  896. Effects["Sphere"].Create(BrickColor.new("Really yellow"), CFrame.new(pos), 25, 25, 25, 5, 5, 5, 0.01)
  897. Effects["Sphere"].Create(BrickColor.new("Bright yellow"), CFrame.new(pos), 10, 10, 10, 15, 15, 15, 0.01)
  898. Effects["Block"].Create(BrickColor.new("White"), CFrame.new(pos), 10, 10, 10, 15, 15, 15, 0.01, 1)
  899. Effects["Wave"].Create(BrickColor.new("Smoky grey"), CFrame.new(pos), 2, 2, 2, 3, 3, 3, 0.01)
  900. CFuncs["Sound"].Create("rbxassetid://10209236", ref, 1, 1)
  901. CFuncs["Sound"].Create("rbxassetid://10209236", Sphere, 0.5, 1)
  902. CFuncs["Sound"].Create("rbxassetid://10209236", Sphere, 0.1, 1)
  903. local e = Instance.new("Explosion", ref)
  904. e.Position = ref.Position
  905. e.BlastRadius = 400
  906. e.DestroyJointRadiusPercent = 400
  907. e.Visible = false
  908. e.ExplosionType = "CratersAndDebris"
  909. game:GetService("Debris"):AddItem(ref, 2)
  910. end
  911. if Thing[3] <= 0 then
  912. table.remove(Effects, e)
  913. end
  914. end
  915. do
  916. do
  917. if Thing[2] ~= "Shoot" and Thing[2] ~= "DecreaseStat" and Thing[2] ~= "showDamage" and Thing[2] ~= "Shoot2" then
  918. if Thing[1].Transparency <= 1 then
  919. if Thing[2] == "Block1" then
  920. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  921. Mesh = Thing[7]
  922. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  923. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  924. else
  925. if Thing[2] == "Block2" then
  926. Thing[1].CFrame = Thing[1].CFrame
  927. Mesh = Thing[7]
  928. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  929. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  930. else
  931. if Thing[2] == "Block3" then
  932. Thing[8].C0 = CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) * Thing[9]
  933. Mesh = Thing[7]
  934. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  935. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  936. else
  937. if Thing[2] == "Cylinder" then
  938. Mesh = Thing[7]
  939. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  940. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  941. else
  942. if Thing[2] == "Cylinder2" then
  943. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, Thing[8], 0)
  944. Mesh = Thing[7]
  945. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  946. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  947. else
  948. if Thing[2] == "Blood" then
  949. Mesh = Thing[7]
  950. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 0.5, 0)
  951. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  952. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  953. else
  954. if Thing[2] == "Elec" then
  955. Mesh = Thing[10]
  956. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  957. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  958. else
  959. if Thing[2] == "Disappear" then
  960. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  961. end
  962. end
  963. end
  964. end
  965. end
  966. end
  967. end
  968. end
  969. else
  970. Part.Parent = nil
  971. table.remove(Effects, e)
  972. end
  973. end
  974. end
  975. end
  976. end
  977. end
  978. end
  979. end
  980. end
  981. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement