Advertisement
memberhero

updated mini neflhelm edit

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