Advertisement
battleman22222

agent

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