Advertisement
Guest User

BG

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