Dark_EccentricYT

Untitled

Oct 31st, 2017
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 36.30 KB | None | 0 0
  1. --[[hyun script by dooven]]--
  2. --[[credits to curseei for motivation lol]]--
  3. --[[hi logger/ exploiter!!11]]--
  4.  
  5. wait(1 / 60)
  6. Effects = { }
  7. local Player = game.Players.localPlayer
  8. local Character = Player.Character
  9. local Humanoid = Character.Humanoid
  10. local Mouse = Player:GetMouse()
  11. local LeftArm = Character["Left Arm"]
  12. local RightArm = Character["Right Arm"]
  13. local LeftLeg = Character["Left Leg"]
  14. local RightLeg = Character["Right Leg"]
  15. local Head = Character.Head
  16. local Torso = Character.Torso
  17. local Camera = game.Workspace.CurrentCamera
  18. local RootPart = Character.HumanoidRootPart
  19. local RootJoint = RootPart.RootJoint
  20. local attack = false
  21. local Anim = 'Idle'
  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 Create = LoadLibrary("RbxUtility").Create
  28.  
  29. local m = Create("Model"){
  30. Parent = Character,
  31. Name = "WeaponModel",
  32. }
  33.  
  34. Humanoid.Animator.Parent = nil
  35. Character.Animate.Parent = nil
  36.  
  37. local newMotor = function(part0, part1, c0, c1)
  38. local w = Create('Motor'){
  39. Parent = part0,
  40. Part0 = part0,
  41. Part1 = part1,
  42. C0 = c0,
  43. C1 = c1,
  44. }
  45. return w
  46. end
  47.  
  48. function clerp(a, b, t)
  49. return a:lerp(b, t)
  50. end
  51.  
  52. RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  53. NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  54.  
  55. local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
  56. local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
  57. local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
  58. local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
  59. RootJoint.C1 = CFrame.new(0, 0, 0)
  60. RootJoint.C0 = CFrame.new(0, 0, 0)
  61. Torso.Neck.C1 = CFrame.new(0, 0, 0)
  62. Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
  63.  
  64. local rarmc1 = RW.C1
  65. local larmc1 = LW.C1
  66. local rlegc1 = RH.C1
  67. local llegc1 = LH.C1
  68.  
  69. local resetc1 = false
  70.  
  71. function PlayAnimationFromTable(table, speed, bool)
  72. RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
  73. Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed)
  74. RW.C0 = clerp(RW.C0, table[3], speed)
  75. LW.C0 = clerp(LW.C0, table[4], speed)
  76. RH.C0 = clerp(RH.C0, table[5], speed)
  77. LH.C0 = clerp(LH.C0, table[6], speed)
  78. if bool == true then
  79. if resetc1 == false then
  80. resetc1 = true
  81. RootJoint.C1 = RootJoint.C1
  82. Torso.Neck.C1 = Torso.Neck.C1
  83. RW.C1 = rarmc1
  84. LW.C1 = larmc1
  85. RH.C1 = rlegc1
  86. LH.C1 = llegc1
  87. end
  88. end
  89. end
  90.  
  91. ArtificialHB = Create("BindableEvent", script){
  92. Parent = script,
  93. Name = "Heartbeat",
  94. }
  95.  
  96. script:WaitForChild("Heartbeat")
  97.  
  98. frame = 1 / 30
  99. tf = 0
  100. allowframeloss = false
  101. tossremainder = false
  102. lastframe = tick()
  103. script.Heartbeat:Fire()
  104.  
  105. game:GetService("RunService").Heartbeat:connect(function(s, p)
  106. tf = tf + s
  107. if tf >= frame then
  108. if allowframeloss then
  109. script.Heartbeat:Fire()
  110. lastframe = tick()
  111. else
  112. for i = 1, math.floor(tf / frame) do
  113. script.Heartbeat:Fire()
  114. end
  115. lastframe = tick()
  116. end
  117. if tossremainder then
  118. tf = 0
  119. else
  120. tf = tf - frame * math.floor(tf / frame)
  121. end
  122. end
  123. end)
  124.  
  125. function swait(num)
  126. if num == 0 or num == nil then
  127. ArtificialHB.Event:wait()
  128. else
  129. for i = 0, num do
  130. ArtificialHB.Event:wait()
  131. end
  132. end
  133. end
  134.  
  135. function RemoveOutlines(part)
  136. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  137. end
  138.  
  139. CFuncs = {
  140. Part = {
  141. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  142. local Part = Create("Part"){
  143. Parent = Parent,
  144. Reflectance = Reflectance,
  145. Transparency = Transparency,
  146. CanCollide = false,
  147. Locked = true,
  148. BrickColor = BrickColor.new(tostring(BColor)),
  149. Name = Name,
  150. Size = Size,
  151. Material = Material,
  152. }
  153. RemoveOutlines(Part)
  154. return Part
  155. end;
  156. };
  157.  
  158. Mesh = {
  159. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  160. local Msh = Create(Mesh){
  161. Parent = Part,
  162. Offset = OffSet,
  163. Scale = Scale,
  164. }
  165. if Mesh == "SpecialMesh" then
  166. Msh.MeshType = MeshType
  167. Msh.MeshId = MeshId
  168. end
  169. return Msh
  170. end;
  171. };
  172.  
  173. Weld = {
  174. Create = function(Parent, Part0, Part1, C0, C1)
  175. local Weld = Create("Weld"){
  176. Parent = Parent,
  177. Part0 = Part0,
  178. Part1 = Part1,
  179. C0 = C0,
  180. C1 = C1,
  181. }
  182. return Weld
  183. end;
  184. };
  185.  
  186. Sound = {
  187. Create = function(id, par, vol, pit)
  188. coroutine.resume(coroutine.create(function()
  189. local Sound = Create("Sound"){
  190. Volume = vol,
  191. Pitch = pit or 1,
  192. SoundId = "rbxassetid://" .. id,
  193. Parent = par or workspace,
  194. }
  195. Sound:play()
  196. game:GetService("Debris"):AddItem(Sound, 10)
  197. end))
  198. end;
  199. };
  200.  
  201. Decal = {
  202. Create = function(Color, Texture, Transparency, Name, Parent)
  203. local Decal = Create("Decal"){
  204. Color3 = Color,
  205. Texture = "rbxassetid://" .. Texture,
  206. Transparency = Transparency,
  207. Name = Name,
  208. Parent = Parent,
  209. }
  210. return Decal
  211. end;
  212. };
  213.  
  214. BillboardGui = {
  215. Create = function(Parent, Image, Position, Size)
  216. local BillPar = CFuncs.Part.Create(Parent, "SmoothPlastic", 0, 1, BrickColor.new("Black"), "BillboardGuiPart", Vector3.new(1, 1, 1))
  217. BillPar.CFrame = CFrame.new(Position)
  218. local Bill = Create("BillboardGui"){
  219. Parent = BillPar,
  220. Adornee = BillPar,
  221. Size = UDim2.new(1, 0, 1, 0),
  222. SizeOffset = Vector2.new(Size, Size),
  223. }
  224. local d = Create("ImageLabel", Bill){
  225. Parent = Bill,
  226. BackgroundTransparency = 1,
  227. Size = UDim2.new(1, 0, 1, 0),
  228. Image = "rbxassetid://" .. Image,
  229. }
  230. return BillPar
  231. end
  232. };
  233.  
  234. ParticleEmitter = {
  235. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  236. local Particle = Create("ParticleEmitter"){
  237. Parent = Parent,
  238. Color = ColorSequence.new(Color1, Color2),
  239. LightEmission = LightEmission,
  240. Size = Size,
  241. Texture = Texture,
  242. Transparency = Transparency,
  243. ZOffset = ZOffset,
  244. Acceleration = Accel,
  245. Drag = Drag,
  246. LockedToPart = LockedToPart,
  247. VelocityInheritance = VelocityInheritance,
  248. EmissionDirection = EmissionDirection,
  249. Enabled = Enabled,
  250. Lifetime = LifeTime,
  251. Rate = Rate,
  252. Rotation = Rotation,
  253. RotSpeed = RotSpeed,
  254. Speed = Speed,
  255. VelocitySpread = VelocitySpread,
  256. }
  257. return Particle
  258. end;
  259. };
  260.  
  261. CreateTemplate = {
  262.  
  263. };
  264. }
  265.  
  266. function rayCast(Position, Direction, Range, Ignore)
  267. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  268. end
  269.  
  270. FindNearestTorso = function(pos)
  271. local list = (game.Workspace:children())
  272. local torso = nil
  273. local dist = 1000
  274. local temp, human, temp2 = nil, nil, nil
  275. for x = 1, #list do
  276. temp2 = list[x]
  277. if temp2.className == "Model" and temp2.Name ~= Character.Name then
  278. temp = temp2:findFirstChild("Torso")
  279. human = temp2:findFirstChild("Humanoid")
  280. if temp ~= nil and human ~= nil and human.Health > 0 and (temp.Position - pos).magnitude < dist then
  281. local dohit = true
  282. if dohit == true then
  283. torso = temp
  284. dist = (temp.Position - pos).magnitude
  285. end
  286. end
  287. end
  288. end
  289. return torso, dist
  290. end
  291.  
  292. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  293. if hit.Parent == nil then
  294. return
  295. end
  296. local h = hit.Parent:FindFirstChild("Humanoid")
  297. for _, v in pairs(hit.Parent:children()) do
  298. if v:IsA("Humanoid") then
  299. h = v
  300. end
  301. end
  302. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  303. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  304. if hit.Parent.DebounceHit.Value == true then
  305. return
  306. end
  307. end
  308. local c = Create("ObjectValue"){
  309. Name = "creator",
  310. Value = game:service("Players").LocalPlayer,
  311. Parent = h,
  312. }
  313. game:GetService("Debris"):AddItem(c, .5)
  314. if HitSound ~= nil and HitPitch ~= nil then
  315. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  316. end
  317. local Damage = math.random(minim, maxim)
  318. local blocked = false
  319. local block = hit.Parent:findFirstChild("Block")
  320. if block ~= nil then
  321. if block.className == "IntValue" then
  322. if block.Value > 0 then
  323. blocked = true
  324. block.Value = block.Value - 1
  325. print(block.Value)
  326. end
  327. end
  328. end
  329. if blocked == false then
  330. h.Health = h.Health - Damage
  331. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Really black").Color)
  332. else
  333. h.Health = h.Health - (Damage / 2)
  334. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Really black").Color)
  335. end
  336. if Type == "Knockdown" then
  337. local hum = hit.Parent.Humanoid
  338. hum.PlatformStand = true
  339. coroutine.resume(coroutine.create(function(HHumanoid)
  340. swait(1)
  341. HHumanoid.PlatformStand = false
  342. end), hum)
  343. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  344. local bodvol = Create("BodyVelocity"){
  345. velocity = angle * knockback,
  346. P = 5000,
  347. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  348. Parent = hit,
  349. }
  350. local rl = Create("BodyAngularVelocity"){
  351. P = 3000,
  352. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  353. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  354. Parent = hit,
  355. }
  356. game:GetService("Debris"):AddItem(bodvol, .5)
  357. game:GetService("Debris"):AddItem(rl, .5)
  358. elseif Type == "Normal" then
  359. local vp = Create("BodyVelocity"){
  360. P = 500,
  361. maxForce = Vector3.new(math.huge, 0, math.huge),
  362. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  363. }
  364. if knockback > 0 then
  365. vp.Parent = hit.Parent.Torso
  366. end
  367. game:GetService("Debris"):AddItem(vp, .5)
  368. elseif Type == "Up" then
  369. local bodyVelocity = Create("BodyVelocity"){
  370. velocity = Vector3.new(0, 20, 0),
  371. P = 5000,
  372. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  373. Parent = hit,
  374. }
  375. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  376. elseif Type == "DarkUp" then
  377. coroutine.resume(coroutine.create(function()
  378. for i = 0, 1, 0.1 do
  379. swait()
  380. Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
  381. end
  382. end))
  383. local bodyVelocity = Create("BodyVelocity"){
  384. velocity = Vector3.new(0, 20, 0),
  385. P = 5000,
  386. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  387. Parent = hit,
  388. }
  389. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  390. elseif Type == "Snare" then
  391. local bp = Create("BodyPosition"){
  392. P = 2000,
  393. D = 100,
  394. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  395. position = hit.Parent.Torso.Position,
  396. Parent = hit.Parent.Torso,
  397. }
  398. game:GetService("Debris"):AddItem(bp, 1)
  399. elseif Type == "Freeze" then
  400. local BodPos = Create("BodyPosition"){
  401. P = 50000,
  402. D = 1000,
  403. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  404. position = hit.Parent.Torso.Position,
  405. Parent = hit.Parent.Torso,
  406. }
  407. local BodGy = Create("BodyGyro") {
  408. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  409. P = 20e+003,
  410. Parent = hit.Parent.Torso,
  411. cframe = hit.Parent.Torso.CFrame,
  412. }
  413. hit.Parent.Torso.Anchored = true
  414. coroutine.resume(coroutine.create(function(Part)
  415. swait(1.5)
  416. Part.Anchored = false
  417. end), hit.Parent.Torso)
  418. game:GetService("Debris"):AddItem(BodPos, 3)
  419. game:GetService("Debris"):AddItem(BodGy, 3)
  420. end
  421. local debounce = Create("BoolValue"){
  422. Name = "DebounceHit",
  423. Parent = hit.Parent,
  424. Value = true,
  425. }
  426. game:GetService("Debris"):AddItem(debounce, Delay)
  427. c = Create("ObjectValue"){
  428. Name = "creator",
  429. Value = Player,
  430. Parent = h,
  431. }
  432. game:GetService("Debris"):AddItem(c, .5)
  433. end
  434. end
  435.  
  436. function ShowDamage(Pos, Text, Time, Color)
  437. local Rate = (1 / 30)
  438. local Pos = (Pos or Vector3.new(0, 0, 0))
  439. local Text = (Text or "")
  440. local Time = (Time or 2)
  441. local Color = (Color or Color3.new(1, 0, 1))
  442. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  443. EffectPart.Anchored = true
  444. local BillboardGui = Create("BillboardGui"){
  445. Size = UDim2.new(3, 0, 3, 0),
  446. Adornee = EffectPart,
  447. Parent = EffectPart,
  448. }
  449. local TextLabel = Create("TextLabel"){
  450. BackgroundTransparency = 1,
  451. Size = UDim2.new(1, 0, 1, 0),
  452. Text = Text,
  453. Font = "SciFi",
  454. TextColor3 = Color,
  455. TextScaled = true,
  456. Parent = BillboardGui,
  457. }
  458. game.Debris:AddItem(EffectPart, (Time))
  459. EffectPart.Parent = game:GetService("Workspace")
  460. delay(0, function()
  461. local Frames = (Time / Rate)
  462. for Frame = 1, Frames do
  463. wait(Rate)
  464. local Percent = (Frame / Frames)
  465. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  466. TextLabel.TextTransparency = Percent
  467. end
  468. if EffectPart and EffectPart.Parent then
  469. EffectPart:Destroy()
  470. end
  471. end)
  472. end
  473.  
  474. function MagnitudeDamage(Part, Magnitude, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch)
  475. for _, c in pairs(workspace:children()) do
  476. local hum = c:findFirstChild("Humanoid")
  477. if hum ~= nil then
  478. local head = c:findFirstChild("Torso")
  479. if head ~= nil then
  480. local targ = head.Position - Part.Position
  481. local mag = targ.magnitude
  482. if mag <= Magnitude and c.Name ~= Player.Name then
  483. Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, .1, "rbxassetid://" .. HitSound, HitPitch)
  484. end
  485. end
  486. end
  487. end
  488. end
  489. ---rip cloths---
  490. for _,v in pairs(Character:children()) do
  491. if v:IsA("Shirt") then
  492. v.ShirtTemplate = "rbxassetid://"
  493. elseif v:IsA("Pants") then
  494. v.PantsTemplate = "rbxassetid://"
  495. elseif v:IsA("ShirtGraphic") then
  496. v:Remove()
  497. wait(.1)
  498. Torso.roblox:Remove()
  499. elseif v:IsA("Accessory") then
  500. v:Remove()
  501. end
  502. end
  503.  
  504. --bodycolor--
  505. Character["Left Arm"].BrickColor = BrickColor.new("Alder")
  506. Character["Right Arm"].BrickColor = BrickColor.new("Alder")
  507. Character["Left Leg"].BrickColor = BrickColor.new("Alder")
  508. Character["Right Leg"].BrickColor = BrickColor.new("Alder")
  509. Character["Head"].BrickColor = BrickColor.new("Alder")
  510. Character.Torso.BrickColor = BrickColor.new("Alder")
  511. ---myface!1---
  512. local p = game.Players.LocalPlayer;
  513. local c = p.Character;
  514. local h = c:WaitForChild'Head';
  515. local f = h:WaitForChild'face';
  516. f.Texture = 'rbxassetid://1117324305';
  517.  
  518. ---parti hat---
  519. New = function(Object, Parent, Name, Data)
  520. local Object = Instance.new(Object)
  521. for Index, Value in pairs(Data or {}) do
  522. Object[Index] = Value
  523. end
  524. Object.Parent = Parent
  525. Object.Name = Name
  526. return Object
  527. end
  528.  
  529. Handle = New("Part",Workspace,"Handle",{FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(3, 0.800000012, 1),CFrame = CFrame.new(-23.616272, 5.65380144, 1.20630872, -0.737060428, -2.11852294e-32, 0.675833762, 6.73713061e-33, 1, -6.55211661e-33, -0.675833762, -1.87098322e-35, -0.737060428),Anchored = true,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  530. Mesh = New("SpecialMesh",Handle,"Mesh",{MeshId = "http://www.roblox.com/asset/?id=1778999",MeshType = Enum.MeshType.FileMesh,})
  531. Decal = New("Decal",Handle,"Decal",{Texture = "http://www.roblox.com/asset/?id=712595840",})
  532.  
  533.  
  534. Handle=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Medium stone grey","Handle",Vector3.new(3, 0.800000012, 1))
  535. HandleWeld=CFuncs.Weld.Create(m,Character["Head"],Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0393753052, -1.15379763, 0.0129241943, -0.737060428, 6.73713061e-33, -0.675833762, -2.11852294e-32, 1, -1.87098322e-35, 0.675833762, -6.55211661e-33, -0.737060428))
  536. sexe = CFuncs.Mesh.Create("SpecialMesh",Handle,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=1778999",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  537. sexe.TextureId = "rbxassetid://712595840"
  538. EffectModel = Create("Model"){
  539. Parent = Character,
  540. Name = "Effects",
  541. }
  542.  
  543. Effects = {
  544. Block = {
  545. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  546. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  547. prt.Anchored = true
  548. prt.CFrame = cframe
  549. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  550. game:GetService("Debris"):AddItem(prt, 10)
  551. if Type == 1 or Type == nil then
  552. table.insert(Effects, {
  553. prt,
  554. "Block1",
  555. delay,
  556. x3,
  557. y3,
  558. z3,
  559. msh
  560. })
  561. elseif Type == 2 then
  562. table.insert(Effects, {
  563. prt,
  564. "Block2",
  565. delay,
  566. x3,
  567. y3,
  568. z3,
  569. msh
  570. })
  571. end
  572. end;
  573. };
  574.  
  575. Cylinder = {
  576. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  577. local prt = CFuncs.Part..Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.2, 0.2, 0.2))
  578. prt.Anchored = true
  579. prt.CFrame = cframe
  580. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  581. game:GetService("Debris"):AddItem(prt, 2)
  582. Effects[#Effects + 1] = {
  583. prt,
  584. "Cylinder",
  585. delay,
  586. x3,
  587. y3,
  588. z3
  589. }
  590. end;
  591. };
  592.  
  593. Head = {
  594. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  595. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  596. prt.Anchored = true
  597. prt.CFrame = cframe
  598. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Head", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  599. game:GetService("Debris"):AddItem(prt, 10)
  600. table.insert(Effects, {
  601. prt,
  602. "Cylinder",
  603. delay,
  604. x3,
  605. y3,
  606. z3,
  607. msh
  608. })
  609. end;
  610. };
  611.  
  612. Sphere = {
  613. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  614. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  615. prt.Anchored = true
  616. prt.CFrame = cframe
  617. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  618. game:GetService("Debris"):AddItem(prt, 10)
  619. table.insert(Effects, {
  620. prt,
  621. "Cylinder",
  622. delay,
  623. x3,
  624. y3,
  625. z3,
  626. msh
  627. })
  628. end;
  629. };
  630.  
  631. Elect = {
  632. Create = function(cff, x, y, z)
  633. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, BrickColor.new("Lime green"), "Part", Vector3.new(1, 1, 1))
  634. prt.Anchored = true
  635. prt.CFrame = cff * CFrame.new(math.random(-x, x), math.random(-y, y), math.random(-z, z))
  636. prt.CFrame = CFrame.new(prt.Position)
  637. game:GetService("Debris"):AddItem(prt, 2)
  638. local xval = math.random() / 2
  639. local yval = math.random() / 2
  640. local zval = math.random() / 2
  641. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
  642. table.insert(Effects, {
  643. prt,
  644. "Elec",
  645. 0.1,
  646. x,
  647. y,
  648. z,
  649. xval,
  650. yval,
  651. zval
  652. })
  653. end;
  654.  
  655. };
  656.  
  657. Ring = {
  658. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  659. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  660. prt.Anchored = true
  661. prt.CFrame = cframe
  662. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  663. game:GetService("Debris"):AddItem(prt, 10)
  664. table.insert(Effects, {
  665. prt,
  666. "Cylinder",
  667. delay,
  668. x3,
  669. y3,
  670. z3,
  671. msh
  672. })
  673. end;
  674. };
  675.  
  676.  
  677. Wave = {
  678. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  679. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  680. prt.Anchored = true
  681. prt.CFrame = cframe
  682. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  683. game:GetService("Debris"):AddItem(prt, 10)
  684. table.insert(Effects, {
  685. prt,
  686. "Cylinder",
  687. delay,
  688. x3,
  689. y3,
  690. z3,
  691. msh
  692. })
  693. end;
  694. };
  695.  
  696. Break = {
  697. Create = function(brickcolor, cframe, x1, y1, z1)
  698. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  699. prt.Anchored = true
  700. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  701. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  702. local num = math.random(10, 50) / 1000
  703. game:GetService("Debris"):AddItem(prt, 10)
  704. table.insert(Effects, {
  705. prt,
  706. "Shatter",
  707. num,
  708. prt.CFrame,
  709. math.random() - math.random(),
  710. 0,
  711. math.random(50, 100) / 100
  712. })
  713. end;
  714. };
  715.  
  716. Fire = {
  717. Create = function(brickcolor, cframe, x1, y1, z1, delay)
  718. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  719. prt.Anchored = true
  720. prt.CFrame = cframe
  721. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  722. game:GetService("Debris"):AddItem(prt, 10)
  723. table.insert(Effects, {
  724. prt,
  725. "Fire",
  726. delay,
  727. 1,
  728. 1,
  729. 1,
  730. msh
  731. })
  732. end;
  733. };
  734.  
  735. FireWave = {
  736. Create = function(brickcolor, cframe, x1, y1, z1)
  737. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 1, brickcolor, "Effect", Vector3.new())
  738. prt.Anchored = true
  739. prt.CFrame = cframe
  740. msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  741. local d = Create("Decal"){
  742. Parent = prt,
  743. Texture = "rbxassetid://26356434",
  744. Face = "Top",
  745. }
  746. local d = Create("Decal"){
  747. Parent = prt,
  748. Texture = "rbxassetid://26356434",
  749. Face = "Bottom",
  750. }
  751. game:GetService("Debris"):AddItem(prt, 10)
  752. table.insert(Effects, {
  753. prt,
  754. "FireWave",
  755. 1,
  756. 30,
  757. math.random(400, 600) / 100,
  758. msh
  759. })
  760. end;
  761. };
  762.  
  763. Lightning = {
  764. Create = function(p0, p1, tym, ofs, col, th, tra, last)
  765. local magz = (p0 - p1).magnitude
  766. local curpos = p0
  767. local trz = {
  768. -ofs,
  769. ofs
  770. }
  771. for i = 1, tym do
  772. local li = CFuncs.Part.Create(EffectModel, "Neon", 0, tra or 0.4, col, "Ref", Vector3.new(th, th, magz / tym))
  773. local ofz = Vector3.new(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)])
  774. local trolpos = CFrame.new(curpos, p1) * CFrame.new(0, 0, magz / tym).p + ofz
  775. li.Material = "Neon"
  776. if tym == i then
  777. local magz2 = (curpos - p1).magnitude
  778. li.Size = Vector3.new(th, th, magz2)
  779. li.CFrame = CFrame.new(curpos, p1) * CFrame.new(0, 0, -magz2 / 2)
  780. table.insert(Effects, {
  781. li,
  782. "Disappear",
  783. last
  784. })
  785. else
  786. do
  787. do
  788. li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(0, 0, magz / tym / 2)
  789. curpos = li.CFrame * CFrame.new(0, 0, magz / tym / 2).p
  790. game.Debris:AddItem(li, 10)
  791. table.insert(Effects, {
  792. li,
  793. "Disappear",
  794. last
  795. })
  796. end
  797. end
  798. end
  799. end
  800. end
  801. };
  802.  
  803. EffectTemplate = {
  804.  
  805. };
  806. }
  807.  
  808. function attackone()
  809. attack = true
  810. for i = 0, 1, 0.1 do
  811. swait()
  812. PlayAnimationFromTable({
  813. CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  814. CFrame.new(0, 1.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  815. CFrame.new(1.5, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  816. CFrame.new(-1.5, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  817. CFrame.new(0.5, -2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  818. CFrame.new(-0.5, -2, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  819. }, .3, false)
  820. end
  821. attack = false
  822. end
  823.  
  824. Mouse.Button1Down:connect(function()
  825. if attack == false and attacktype == 1 then
  826. attackone()
  827. end
  828. end)
  829.  
  830. Mouse.KeyDown:connect(function(k)
  831. k = k:lower()
  832. if attack == false and k == '' then
  833.  
  834. end
  835. end)
  836.  
  837. while true do
  838. swait()
  839. for i, v in pairs(Character:GetChildren()) do
  840. if v:IsA("Part") then
  841. v.Material = "SmoothPlastic"
  842. elseif v:IsA("Accessory") then
  843. v:WaitForChild("Handle").Material = "SmoothPlastic"
  844. end
  845. end
  846. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  847. velocity = RootPart.Velocity.y
  848. sine = sine + change
  849. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  850. if RootPart.Velocity.y > 1 and hit == nil then
  851. Anim = "Jump"
  852. if attack == false then
  853. PlayAnimationFromTable({
  854. CFrame.new(0, 0.0436773151, -0.0958894566, 1, 0, 0, 0, 0.979366124, 0.202094048, 0, -0.202094033, 0.979366124) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  855. CFrame.new(0, 1.50078464, -0.0434546769, 1, 0, 0, 0, 0.990667343, 0.136302382, 0, -0.136302412, 0.990667343) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  856. CFrame.new(1.64024234, 0.193567753, 0.00427898765, 0.892431021, -0.354886115, 0.278608471, 0.407243699, 0.899403036, -0.158829555, -0.19421488, 0.255205929, 0.94718039) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  857. CFrame.new(-1.6411283, 0.235373467, 0.0476976931, 0.854992151, 0.446793675, -0.263370335, -0.496187717, 0.852461219, -0.164643824, 0.150951192, 0.271450311, 0.950541198) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  858. CFrame.new(0.55792439, -1.57147515, -0.158797979, 0.997079909, 0.0636449754, -0.0421660356, -0.0447768904, 0.934851587, 0.352215409, 0.061834842, -0.349303246, 0.934978843) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  859. CFrame.new(-0.738243103, -1.88598239, 0.260951996, 0.962180376, 0.154025614, 0.224692196, -0.20719263, 0.94928062, 0.236513555, -0.176866814, -0.274123043, 0.945291162) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
  860. }, 0.3, false)
  861. end
  862. elseif RootPart.Velocity.y < -1 and hit == nil then
  863. Anim = "Fall"
  864. if attack == false then
  865. PlayAnimationFromTable({
  866. CFrame.new(0.0226157792, -0.0212399997, 0.130760044, 0.987825871, 0.0410310999, 0.150055334, 0, 0.964589238, -0.26375708, -0.15556398, 0.260546058, 0.952846169) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  867. CFrame.new(0.0388777852, 1.55246329, -0.167190313, 0.96372503, 0.00389923947, -0.266869605, 0.0835845172, 0.945186496, 0.3156524, 0.253472269, -0.326508105, 0.910574019) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  868. CFrame.new(1.72698784, 0.344668627, -0.2057845, 0.711411119, -0.460974425, 0.530468345, 0.667616367, 0.679052651, -0.30524689, -0.219505072, 0.571305454, 0.79084003) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  869. CFrame.new(-1.69352794, 0.405396253, 0.0323119164, 0.614052653, 0.685430944, -0.391310841, -0.764818966, 0.639190793, -0.0805452466, 0.194914013, 0.348741174, 0.916727304) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  870. CFrame.new(0.708790183, -1.69872558, -0.272453845, 0.962645173, -0.220248789, -0.157495782, 0.226377994, 0.973794341, 0.021872133, 0.148551151, -0.0567086488, 0.987277567) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  871. CFrame.new(-0.383032143, -1.80201328, -0.0648381114, 0.971793711, -0.202388048, 0.121063158, 0.131539553, 0.891238749, 0.434042007, -0.195740849, -0.405874491, 0.892722249) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
  872. }, 0.3, false)
  873. end
  874. elseif Torsovelocity < 1 and hit ~= nil then
  875. Anim = "Idle"
  876. if attack == false then
  877. change = 1
  878. PlayAnimationFromTable({
  879. CFrame.new(-0.0333145075, 7.60555267e-05, 0.030491773, 1.00000501, 3.79639734e-27, -0.000332001655, -3.7964116e-27, 1, 4.79997233e-36, 0.000332001655, 1.26039175e-30, 1.00000501) * CFrame.new(0, 0 + 0.1 * math.cos(sine / 15), 0) * CFrame.Angles(0 + 0.05 * math.cos(sine / 15), 0, 0),
  880. CFrame.new(7.56094791e-33, 1.4999845, -1.10025138e-35, 1.00001013, 5.04068398e-33, 0, 5.04068398e-33, 1, -7.33508475e-36, 0, -7.33508475e-36, 1.00001013) * CFrame.new(0, 0, 0 + 0.01 * math.cos(sine / 17)) * CFrame.Angles(0 + 0.11 * math.cos(sine / 17), 0, 0 - 0.07 * math.cos(sine / 17)),
  881. CFrame.new(1.79585624, 1.01347446, -0.000334853074, -0.905892968, -0.42352125, -3.3469405e-09, 0.423518062, -0.905890822, -1.83649296e-09, -2.53203325e-09, -2.99769454e-09, 1.00000668) * CFrame.new(0, 0 + 0.1 * math.cos(sine / 23), 0) * CFrame.Angles(0, 0, 0 + 0.1 * math.cos(sine / 16.1)),
  882. CFrame.new(-1.85797977, 1.05386424, 0.000661444676, -0.884776115, 0.466035187, -2.31957529e-08, -0.46603635, -0.884769499, 1.0778785e-08, -1.47265382e-08, 2.06928235e-08, 1.00000989) * CFrame.new(0, 0 + 0.1 * math.cos(sine / 23), 0) * CFrame.Angles(0, 0 - 0.12 * math.cos(sine / 19.2), 0 - 0.1 * math.cos(sine / 16.1)),
  883. CFrame.new(0.500018418, -2.00006199, -1.90736796e-06, 1.00001013, 5.04068398e-33, 0, 5.04068398e-33, 1, -7.33508475e-36, 0, -7.33508475e-36, 1.00001013) * CFrame.new(0, 0 - 0.1 * math.cos(sine / 15), 0 + 0.05 * math.cos(sine / 15)) * CFrame.Angles(0 - 0.05 * math.cos(sine / 15), 0, 0),
  884. CFrame.new(-0.500010788, -2.00006199, 0.000329855451, 1.00001013, 5.04068398e-33, 0, 5.04068398e-33, 1, -7.33508475e-36, 0, -7.33508475e-36, 1.00001013) * CFrame.new(0, 0, 0) * CFrame.new(0, 0 - 0.1 * math.cos(sine / 15), 0 + 0.05 * math.cos(sine / 15)) * CFrame.Angles(0 - 0.05 * math.cos(sine / 15), 0, 0),
  885. }, .3, false)
  886. end
  887. elseif Torsovelocity > 2 and hit ~= nil then
  888. Anim = "Walk"
  889. if attack == false then
  890. PlayAnimationFromTable({
  891. CFrame.new(0, -0.174938306, -0.101783589, 1, 0, 0, 0, 0.979186654, 0.202961922, 0, -0.202961922, 0.979186654) * CFrame.new(0, 0 + 0.1 * math.cos(sine / 4), 0) * CFrame.Angles(0, 0 + 0.1 * math.sin(sine / 8), 0),
  892. CFrame.new(0, 1.49999189, 1.58548355E-5, 1, 0, 0, 0, 0.995475352, -0.0950205326, 0, 0.0950205326, 0.995475352) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0 - 0.1 * math.sin(sine / 8), 0),
  893. CFrame.new(1.57730746, 0.0719611943, 0.00628598034, 0.976458192, -0.188104928, 0.105574317, 0.200467497, 0.972049892, -0.122196086, -0.0796378255, 0.140483588, 0.986874938) * CFrame.new(-0.05, 0, -0.1 - 0.5 * math.sin(sine / 8)) * CFrame.Angles(math.rad(30 * math.sin(sine / 8)), math.rad(0), math.rad(0)),
  894. CFrame.new(-1.55804253, 0.0689925253, 0.0429513156, 0.964821577, 0.249019504, -0.0843129531, -0.261087656, 0.945191264, -0.196078911, 0.0308643766, 0.211194247, 0.976956785) * CFrame.new(0.05, 0, -0.2 + 0.5 * math.sin(sine / 8)) * CFrame.Angles(math.rad(-30 * math.sin(sine / 8)), math.rad(0), math.rad(0)),
  895. CFrame.new(0.5, -1.64 - 0.5 * math.cos(sine / 8) / 2, 0 + 1.5 * math.sin(sine / 8) / 2) * CFrame.Angles(math.rad(-50 * math.sin(sine / 8)), math.rad(-5), math.rad(0)),
  896. CFrame.new(-0.5, -1.64 + 0.5 * math.cos(sine / 8) / 2, 0 - 1.5 * math.sin(sine / 8) / 2) * CFrame.Angles(math.rad(50 * math.sin(sine / 8)), math.rad(5), math.rad(0))
  897. }, 0.3, false)
  898. end
  899. end
  900. if 0 < #Effects then
  901. for e = 1, #Effects do
  902. if Effects[e] ~= nil then
  903. local Thing = Effects[e]
  904. if Thing ~= nil then
  905. local Part = Thing[1]
  906. local Mode = Thing[2]
  907. local Delay = Thing[3]
  908. local IncX = Thing[4]
  909. local IncY = Thing[5]
  910. local IncZ = Thing[6]
  911. if Thing[2] == "Shoot" then
  912. local Look = Thing[1]
  913. local move = 30
  914. if Thing[8] == 3 then
  915. move = 10
  916. end
  917. local hit, pos = rayCast(Thing[4], Thing[1], move, m)
  918. if Thing[10] ~= nil then
  919. da = pos
  920. cf2 = CFrame.new(Thing[4], Thing[10].Position)
  921. cfa = CFrame.new(Thing[4], pos)
  922. tehCF = cfa:lerp(cf2, 0.2)
  923. Thing[1] = tehCF.lookVector
  924. end
  925. local mag = (Thing[4] - pos).magnitude
  926. Effects["Head"].Create(Torso.BrickColor, CFrame.new((Thing[4] + pos) / 2, pos) * CFrame.Angles(1.57, 0, 0), 1, mag * 5, 1, 0.5, 0, 0.5, 0.2)
  927. if Thing[8] == 2 then
  928. Effects["Ring"].Create(Torso.BrickColor, CFrame.new((Thing[4] + pos) / 2, pos) * CFrame.Angles(1.57, 0, 0) * CFrame.fromEulerAnglesXYZ(1.57, 0, 0), 1, 1, 0.1, 0.5, 0.5, 0.1, 0.1, 1)
  929. end
  930. Thing[4] = Thing[4] + Look * move
  931. Thing[3] = Thing[3] - 1
  932. if 2 < Thing[5] then
  933. Thing[5] = Thing[5] - 0.3
  934. Thing[6] = Thing[6] - 0.3
  935. end
  936. if hit ~= nil then
  937. Thing[3] = 0
  938. if Thing[8] == 1 or Thing[8] == 3 then
  939. Damage(hit, hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, "", 1)
  940. else
  941. if Thing[8] == 2 then
  942. Damage(hit, hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, "", 1)
  943. if (hit.Parent:findFirstChild("Humanoid")) ~= nil or (hit.Parent.Parent:findFirstChild("Humanoid")) ~= nil then
  944. ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
  945. ref.Anchored = true
  946. ref.CFrame = CFrame.new(pos)
  947. CFuncs["Sound"].Create("161006093", ref, 1, 1.2)
  948. game:GetService("Debris"):AddItem(ref, 0.2)
  949. Effects["Block"].Create(Torso.BrickColor, CFrame.new(ref.Position) * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 1, 1, 10, 10, 10, 0.1, 2)
  950. Effects["Ring"].Create(BrickColor.new("Bright yellow"), CFrame.new(ref.Position) * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 1, 0.1, 4, 4, 0.1, 0.1)
  951. MagnitudeDamage(ref, 15, Thing[5] / 1.5, Thing[6] / 1.5, 0, "Normal", "", 1)
  952. end
  953. end
  954. end
  955. ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
  956. ref.Anchored = true
  957. ref.CFrame = CFrame.new(pos)
  958. Effects["Sphere"].Create(Torso.BrickColor, CFrame.new(pos), 5, 5, 5, 1, 1, 1, 0.07)
  959. game:GetService("Debris"):AddItem(ref, 1)
  960. end
  961. if Thing[3] <= 0 then
  962. table.remove(Effects, e)
  963. end
  964. end
  965. do
  966. do
  967. if Thing[2] == "FireWave" then
  968. if Thing[3] <= Thing[4] then
  969. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(0, 1, 0)
  970. Thing[3] = Thing[3] + 1
  971. Thing[6].Scale = Thing[6].Scale + Vector3.new(Thing[5], 0, Thing[5])
  972. else
  973. Part.Parent = nil
  974. table.remove(Effects, e)
  975. end
  976. end
  977. if Thing[2] ~= "Shoot" and Thing[2] ~= "Wave" and Thing[2] ~= "FireWave" then
  978. if Thing[1].Transparency <= 1 then
  979. if Thing[2] == "Block1" then
  980. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  981. Mesh = Thing[7]
  982. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  983. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  984. else
  985. if Thing[2] == "Block2" then
  986. Thing[1].CFrame = Thing[1].CFrame
  987. Mesh = Thing[7]
  988. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  989. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  990. else
  991. if Thing[2] == "Fire" then
  992. Thing[1].CFrame = CFrame.new(Thing[1].Position) + Vector3.new(0, 0.2, 0)
  993. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  994. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  995. else
  996. if Thing[2] == "Cylinder" then
  997. Mesh = Thing[7]
  998. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  999. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1000. else
  1001. if Thing[2] == "Blood" then
  1002. Mesh = Thing[7]
  1003. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 0.5, 0)
  1004. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1005. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1006. else
  1007. if Thing[2] == "Elec" then
  1008. Mesh = Thing[10]
  1009. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1010. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1011. else
  1012. if Thing[2] == "Disappear" then
  1013. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1014. end
  1015. end
  1016. end
  1017. end
  1018. end
  1019. end
  1020. end
  1021. else
  1022. Part.Parent = nil
  1023. table.remove(Effects, e)
  1024. end
  1025. end
  1026. end
  1027. end
  1028. end
  1029. end
  1030. end
  1031. end
  1032. end
Add Comment
Please, Sign In to add comment