AgentVK

Untitled

Jul 6th, 2017
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 78.98 KB | None | 0 0
  1. local Me = game.Players.LocalPlayer
  2. Attkin = false
  3.  
  4. if script.Parent.className ~= "HopperBin" then
  5. local h = Instance.new("HopperBin", Me.Backpack)
  6. h.Name = "Naome"
  7. script.Parent = h
  8. end
  9.  
  10. local bin = script.Parent
  11. me2 = Me.Character
  12.  
  13. function RC(Pos, Dir, Max, Ignore)
  14. return workspace:FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999)), Ignore)
  15. end
  16.  
  17. function RayC(Start, En, MaxDist, Ignore)
  18. return RC(Start, (En - Start), MaxDist, Ignore)
  19. end
  20.  
  21. mouse = game.Players.LocalPlayer:GetMouse()
  22. local plr = game.Players.LocalPlayer.Character
  23. god = false
  24.  
  25. function onSelected(mouse)
  26. mouse.Button1Down:connect(function()
  27. shot = Instance.new("Part")
  28. shot.Parent = me2
  29. shot.CanCollide = false
  30. shot.Anchored = true
  31. shot.Size = Vector3.new(2, 2, 2)
  32. shot.Transparency = 0.5
  33. shot.BrickColor = BrickColor.new("Royal purple")
  34. local mesh = Instance.new("SpecialMesh")
  35. mesh.Parent = shot
  36. mesh.MeshType = "Sphere"
  37. local start = CFrame.new(me2.Torso.Position) + Vector3.new(0, 3, 0)
  38. local ending = mouse.Hit.p
  39. local face = CFrame.new(start.p, ending)
  40. shot.CFrame = face
  41. local magn = (start.p - ending).magnitude
  42. local lastP = start.p
  43. for i = 4, 300, 8 do
  44. face = face * CFrame.new(0, 0, -8)
  45. shot.CFrame = face
  46. local mag = (lastP - face.p).magnitude
  47. local t = Instance.new("Part",me2)
  48. t.Anchored = true
  49. t.BrickColor = BrickColor.new("Royal purple")
  50. t.formFactor = "Custom"
  51. t.Size = Vector3.new(1, 1, 1)
  52. local mm = Instance.new("BlockMesh",t)
  53. mm.Scale = Vector3.new(1, 1, mag)
  54. t.CFrame = CFrame.new(lastP, face.p) * CFrame.new(0, 0, -mag/2)
  55. coroutine.resume(coroutine.create(function()
  56. wait(0.05)
  57. for i = 0, 1, 0.1 do
  58. t.Transparency = i
  59. mm.Scale = Vector3.new(0.4-0.4*i, 0.4-0.4*i, mag)
  60. wait()
  61. end
  62. t:remove()
  63. end))
  64. local hit, pos = RayC(lastP, face.p, 14, me2)
  65. if hit then
  66. local h = hit.Parent:findFirstChild("Humanoid")
  67. if h then
  68. h.Health = h.Health - math.random(15, 35)
  69. end
  70. shot:remove()
  71. break
  72. end
  73. lastP = face.p
  74. wait()
  75. end
  76. shot:remove()
  77. end)
  78.  
  79. mouse.KeyDown:connect(function(key)
  80. if key == "f" then
  81. shot = Instance.new("Part")
  82. shot.Parent = me2
  83. shot.CanCollide = false
  84. shot.Anchored = true
  85. shot.Size = Vector3.new(2, 2, 2)
  86. shot.Transparency = 0.5
  87. shot.BrickColor = BrickColor.new("Really black")
  88. local fire = Instance.new("Fire")
  89. fire.Parent = shot
  90. local mesh = Instance.new("SpecialMesh")
  91. mesh.Parent = shot
  92. mesh.MeshType = "Sphere"
  93. local start = CFrame.new(me2.Torso.Position) + Vector3.new(0, 3, 0)
  94. local ending = mouse.Hit.p
  95. local face = CFrame.new(start.p, ending)
  96. shot.CFrame = face
  97. local magn = (start.p - ending).magnitude
  98. local lastP = start.p
  99. for i = 4, 300, 8 do
  100. face = face * CFrame.new(0, 0, -8)
  101. shot.CFrame = face
  102. local mag = (lastP - face.p).magnitude
  103. local t = Instance.new("Part",me2)
  104. t.Anchored = true
  105. t.BrickColor = BrickColor.new("Really black")
  106. t.formFactor = "Custom"
  107. t.Size = Vector3.new(1, 1, 1)
  108. local mm = Instance.new("BlockMesh",t)
  109. mm.Scale = Vector3.new(1, 1, mag)
  110. t.CFrame = CFrame.new(lastP, face.p) * CFrame.new(0, 0, -mag/2)
  111. coroutine.resume(coroutine.create(function()
  112. wait(0.05)
  113. for i = 0, 1, 0.1 do
  114. t.Transparency = i
  115. mm.Scale = Vector3.new(0.4-0.4*i, 0.4-0.4*i, mag)
  116. wait()
  117. end
  118. t:remove()
  119. end))
  120. local hit, pos = RayC(lastP, face.p, 14, me2)
  121. if hit then
  122. local h = hit.Parent:findFirstChild("Humanoid")
  123. if h then
  124. h.Health = h.Health - math.random(15, 35)
  125. end
  126. shot:remove()
  127. break
  128. end
  129. lastP = face.p
  130. wait()
  131. end
  132. shot:remove()
  133. end
  134. end)
  135. mouse.KeyDown:connect(function(key)
  136. if key=='e' then
  137. plr:FindFirstChildOfClass("Humanoid").Name = "Humanoid"
  138. wait()
  139. god = true
  140. local particleemitterz = Instance.new("ParticleEmitter", plr.Torso)
  141. PARSI = 5
  142. particleemitterz.Lifetime = NumberRange.new(0.2)
  143. particleemitterz.Speed = NumberRange.new(0)
  144.  
  145. game:service'RunService'.RenderStepped:connect(function()
  146. particleemitterz.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, PARSI), NumberSequenceKeypoint.new(1, PARSI)})
  147. end)
  148.  
  149. particleemitterz.Rate = 1000
  150. particleemitterz.Rotation = NumberRange.new(0, 360)
  151. particleemitterz.LightEmission = 1
  152. particleemitterz.Color = ColorSequence.new(Color3.new(0.639216, 0.227451, 1), Color3.new(0.639216, 0.227451, 1))
  153. particleemitterz.Texture = "http://www.roblox.com/asset/?id=243098098"
  154.  
  155. Main_Head.Size = Vector3.new(9, 9, 9)
  156. MainH_Part.Size = Vector3.new(.7518369, .7518369, .7518369)
  157. wait()
  158. WELDYWELDY = Instance.new("Weld",Main_Head)
  159. WELDYWELDY.Part1 = torso
  160. WELDYWELDY.Part0 = Main_Head
  161. WELDY = Instance.new("Weld",MainH_Part)
  162. WELDY.Part1 = Main_Head
  163. WELDY.Part0 = MainH_Part
  164.  
  165. spawn(function()
  166. while wait() do
  167. if god == true then
  168. if plr:FindFirstChildOfClass("Humanoid").Health <= 9e+999 then
  169. plr:FindFirstChildOfClass("Humanoid").Health = 9e+999
  170. plr:FindFirstChildOfClass("Humanoid").MaxHealth = 9e+999
  171. end
  172. end
  173. end
  174. end)
  175. elseif key=='r' then
  176. plr:FindFirstChildOfClass("Humanoid").Name = "Humanoid"
  177. plr:FindFirstChildOfClass("Humanoid").MaxHealth = 100
  178. wait()
  179. plr:FindFirstChildOfClass("Humanoid").Health = 100
  180. WELDYWELDY:remove()
  181. WELDY:remove()
  182. wait()
  183. Main_Head.Size = Vector3.new(2.96000004, 2.96000004, 2.96000004)
  184. MainH_Part.Size = Vector3.new(1.7518369, 1.7518369, 1.7518369)
  185. Main_Headweld=weld(m,torso,Main_Head,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00997161865, 0.0349311829, -4.91999435, 1, 0, 0, 0, 0, -1, 0, 1, 0))
  186. MainH_Partweld=weld(m,Main_Head,MainH_Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -0.0603561401, 1.62124634e-005, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  187. god = false
  188. plr.Torso.ParticleEmitter:remove()
  189. end
  190. end)
  191. end
  192.  
  193. function onDesel(mouse)
  194. end
  195.  
  196. bin.Selected:connect(onSelected)
  197. bin.Deselected:connect(onDesel)
  198.  
  199. p = game.Players.LocalPlayer
  200. char = p.Character
  201. torso = char.Torso
  202. neck = char.Torso.Neck
  203. hum = char.Humanoid
  204. hum.MaxHealth = 2500
  205. wait()
  206. hum.Health =hum.MaxHealth
  207.  
  208. local s = Instance.new("Sound",char)
  209. s.SoundId = "http://www.roblox.com/asset/?id="
  210. s.Pitch = 0.98
  211. s.Volume = 1
  212. s.Looped = true
  213. wait(0)
  214. s:play()
  215.  
  216. CV="Maroon"
  217.  
  218. local txt = Instance.new("BillboardGui", char)
  219. txt.Adornee = char .Head
  220. txt.Name = "_status"
  221. txt.Size = UDim2.new(2, 0, 1.2, 0)
  222. txt.StudsOffset = Vector3.new(-9, 8, 0)
  223. local text = Instance.new("TextLabel", txt)
  224. text.Size = UDim2.new(10, 0, 7, 0)
  225. text.FontSize = "Size24"
  226. text.TextScaled = true
  227. text.TextTransparency = 0
  228. text.BackgroundTransparency = 1
  229. text.TextTransparency = 0
  230. text.TextStrokeTransparency = 0
  231. text.Font = "SourceSansBold"
  232. text.TextStrokeColor3 = Color3.new(0.5,0.05,1)
  233.  
  234. v=Instance.new("Part")
  235. v.Name = "ColorBrick"
  236. v.Parent=p.Character
  237. v.FormFactor="Symmetric"
  238. v.Anchored=true
  239. v.CanCollide=false
  240. v.BottomSurface="Smooth"
  241. v.TopSurface="Smooth"
  242. v.Size=Vector3.new(10,5,3)
  243. v.Transparency=1
  244. v.CFrame=char.Torso.CFrame
  245. v.BrickColor=BrickColor.new(CV)
  246. v.Transparency=1
  247. text.TextColor3 = Color3.new(0,0,0)
  248. v.Shape="Block"
  249. text.Text = "Naome"
  250.  
  251.  
  252.  
  253. local armmovments = false
  254. local plr = game:GetService('Players').LocalPlayer
  255. local chr = plr.Character
  256. local maus = plr:GetMouse()
  257. local PGui=plr.PlayerGui
  258. local lleg = chr["Left Leg"]
  259. local rleg = chr["Right Leg"]
  260. local larm = chr["Left Arm"]
  261. local rarm = chr["Right Arm"]
  262. local hed = chr.Head
  263. local rutprt = chr.HumanoidRootPart
  264. local torso = chr.Torso
  265. local otheranims=false
  266. local swimming=false
  267. chr.Animate.Disabled=true
  268. local fldb={['w']=false,['a']=false,['s']=false,['d']=false}
  269. local RunSpeed=50
  270. local WlkSpeed=30
  271. local SwimSpeed=14
  272. local SwimDashSpeed=28
  273. local anim = "Idling"
  274. local lastanim = "Idling"
  275. local val = 0
  276. local syne = 0
  277. local num = 0
  278. local runtime = 0
  279. local pseudohead=hed:Clone()
  280. for i,x in pairs(pseudohead:GetChildren()) do if not x.ClassName:find('Mesh') then x:Destroy() end end
  281. pseudohead.Name='PseudoHead'
  282. pseudohead.Parent=chr.Head
  283. local pseudoweld=Instance.new('Weld',torso)
  284. pseudoweld.Part0=hed
  285. pseudoweld.Name='PseudoHedWld'
  286. pseudoweld.Part1=pseudohead
  287. hed.Transparency=1
  288. local Player = game:GetService('Players').LocalPlayer
  289. local Character = Player.Character
  290. local Mouse = Player:GetMouse()
  291. local LeftArm = Character:WaitForChild("Left Arm")
  292. local RightArm = Character:WaitForChild("Right Arm")
  293. local LeftLeg = Character:WaitForChild("Left Leg")
  294. local RightLeg = Character:WaitForChild("Right Leg")
  295. local Head = Character:WaitForChild("Head")
  296. local Torso = Character:WaitForChild("Torso")
  297. z = Instance.new("Sound", torso)
  298. z.SoundId = "rbxassetid://242942414" -- Put Music ID Here.
  299. z.Looped = true
  300. z.Pitch = 0.82
  301. z.Volume = 1
  302. wait(.1)
  303. z:Play()
  304. local RootPart = Character:WaitForChild("HumanoidRootPart")
  305. local Humanoid = Character:WaitForChild("Humanoid")
  306. local LeftShoulder = Torso:WaitForChild("Left Shoulder")
  307. local RightShoulder = Torso:WaitForChild("Right Shoulder")
  308. local LeftHip = Torso:WaitForChild("Left Hip")
  309. local RightHip = Torso:WaitForChild("Right Hip")
  310. local Neck = Torso:WaitForChild("Neck")
  311. local RootJoint = RootPart:WaitForChild("RootJoint")
  312. local Camera = workspace.CurrentCamera
  313. local FLeftShoulder, FRightShoulder = Instance.new("Weld", Torso), Instance.new("Weld", Torso)
  314. FLeftShoulder.Name = "LS"
  315. FRightShoulder.Name = "RS"
  316. local FLeftHip, FRightHip = Instance.new("Weld", Torso), Instance.new("Weld", Torso)
  317. FLeftHip.Name = "LH"
  318. FRightHip.Name = "RH"
  319. local FRootJoint = Instance.new("Weld", RootPart)
  320. FRootJoint.Name = "RJ"
  321. local F1, F2, F3 = Instance.new("Folder", Character), Instance.new("Folder"), Instance.new("Folder")
  322. F1.Name = "Parts Folder"
  323. F2.Parent = F1
  324. F2.Name = "Effects"
  325. F3.Parent = F1
  326. F3.Name = "Extra Parts"
  327. local Drag_To_Part = Instance.new("Part", F3)
  328. Drag_To_Part.Transparency = 1
  329. Drag_To_Part.Name = "Drag-to-part"
  330. Drag_To_Part.Size = Vector3.new(0.2, 0.2, 0.2)
  331. Drag_To_Part.Anchored = false
  332. Drag_To_Part.CanCollide = false
  333. Drag_To_Part.Locked = true
  334. local DTPWeld = Instance.new("Weld", Drag_To_Part)
  335. DTPWeld.Part0 = RootPart
  336. DTPWeld.Part1 = Drag_To_Part
  337. local WepWeld, WepWeld2, WepWeld3, SheWeld = nil, nil, nil, nil
  338. local NLSC0 = LeftShoulder.C0
  339. local NLSC1 = LeftShoulder.C1
  340. local NRSC0 = RightShoulder.C0
  341. local NRSC1 = RightShoulder.C1
  342. local NLHC0 = LeftHip.C0
  343. local NLHC1 = LeftHip.C1
  344. local NRHC0 = RightHip.C0
  345. local NRHC1 = RightHip.C1
  346. local NNC0 = Neck.C0
  347. local NNC1 = Neck.C1
  348. local NRJC0 = RootJoint.C0
  349. local NRJC1 = RootJoint.C1
  350. local Handle, Hit_Box, Handle2, Hit_Box2, TEHandle, TESHandle, TEHit_Box, CEP = nil, nil, nil, nil, nil, nil, nil, nil
  351. local chatServ = game:GetService("Chat")
  352. local runServ = game:GetService("RunService")
  353. local debServ = game:GetService("Debris")
  354. local CurrentSpeed = 16
  355. local Current_Anim = "Idle"
  356. local Attack_Num = 1
  357. local Damage_Buff = 0
  358. local Max_Health = 400
  359. local Last_Health = Max_Health
  360. local idle = 1
  361. local idlenum = 1
  362. local idlenum2 = 1
  363. local walk = 1
  364. local walknum = 1
  365. local walknum2 = 1
  366. local Effects = {}
  367. local DragTable = {}
  368. local InputTable = {}
  369. local InputFrameTable = {}
  370. local TEBladeP = {}
  371. local TEBEffect, c1, c2 = nil, nil, nil
  372. local RGyro = Instance.new("BodyGyro")
  373. RGyro.MaxTorque = Vector3.new(0, 0, 0)
  374. RGyro.P = 2000
  375. local LLCF = CFrame.new()
  376. local SWP = Instance.new("BoolValue")
  377. local ControlScript = Player.PlayerScripts:WaitForChild("ControlScript")
  378. local Z_Pressed = false
  379. local Debounces = {Equipped = false, Equipping = false, HasWep = false, DuelWielding = false, Attacking = false, Locked_On = false, Can_Double_Jump = false, AnimOverride = false, Guarding = false, Crouching = false, JumpAnim = false, DoubleJumpAnim = false, KeyStrokeEnabled = false, Successful_KeyStroke = false, KeyStroke_CoolDown = false, UIAction = false, ZeroGravity = false, DoubleJumping = false, Charging_Erupt = false, Guarding = false, Transformed = false, DisableJump = false, Dashing = false, Hovering = false, TEWield = false, TESWield = false, CanGuard = true, SpedUp = false, HurrSlash = false, Stompped = false}
  380. local rad = math.rad
  381. local huge = math.huge
  382. local rand = math.random
  383. local Vec = Vector3.new
  384. local Cf = CFrame.new
  385. local Euler = CFrame.fromEulerAnglesXYZ
  386. local BC = BrickColor.new
  387. local Col3 = Color3.new
  388. local Inst = Instance.new
  389. local Ud2 = UDim2.new
  390.  
  391.  
  392.  
  393. local FONT = "SourceSansLight"
  394.  
  395.  
  396. MakeText = function(text, font, duration, tcr, tcg, tcb, scr, scg, scb, cFrame)
  397. local tpart = Instance.new("Part")
  398. tpart.Parent = F2
  399. tpart.Transparency = 1
  400. tpart.Name = "hoi hoi"
  401. tpart.Anchored = true
  402. tpart.CanCollide = false
  403. tpart.Locked = true
  404. tpart.Size = Vector3.new(0.2, 0.2, 0.2)
  405. tpart.CFrame = cFrame * CFrame.new(math.random(-2, 2), 0, math.random(-2, 2))
  406. local bill = Instance.new("BillboardGui")
  407. bill.Parent = tpart
  408. bill.AlwaysOnTop = true
  409. bill.Name = "HUHHHHHNAAAA"
  410. bill.Size = UDim2.new(4, 0, 4, 0)
  411. bill.StudsOffset = Vector3.new(0, 1, 0)
  412. local counter = 0
  413. local textl = Instance.new("TextLabel")
  414. textl.Parent = bill
  415. textl.Name = "WHYYYYYYYY"
  416. textl.BackgroundTransparency = 1
  417. textl.Size = UDim2.new(1, 0, 1, 0)
  418. textl.Font = font
  419. textl.Text = text
  420. textl.TextColor3 = Color3.new(tcr / 255, tcg / 255, tcb / 255)
  421. textl.TextScaled = true
  422. textl.TextStrokeColor3 = Color3.new(scr / 255, scg / 255, scb / 255)
  423. textl.TextStrokeTransparency = 0
  424. coroutine.resume(coroutine.create(function()
  425. while textl.TextTransparency < 1 do
  426. swait()
  427. if bill.StudsOffset.Y >= 5 then
  428. if duration <= counter then
  429. textl.TextTransparency = textl.TextTransparency + 0.15
  430. textl.TextStrokeTransparency = textl.TextStrokeTransparency + 0.15
  431. end
  432. end
  433. counter = counter + 0.1
  434. bill.StudsOffset = Vector3.new(0, bill.StudsOffset.Y + 0.15, 0)
  435. end
  436. debServ:AddItem(bill, 0)
  437. debServ:AddItem(textl, 0)
  438. debServ:AddItem(tpart, 0)
  439. end))
  440. end
  441.  
  442. Apply_Buff = function(amount, duration)
  443.  
  444. coroutine.resume(coroutine.create(function()
  445.  
  446. if amount > 0 and duration > 0 then
  447. Damage_Buff = Damage_Buff + amount
  448. MakeText("+" .. amount .. " Damage", FONT, 0.3, 255, 0, 0, 0, 0, 0, RootPart.CFrame)
  449. wait(duration)
  450. Damage_Buff = Damage_Buff - amount
  451. MakeText("-" .. amount .. " Damage", FONT, 0.3, 255, 0, 0, 0, 0, 0, RootPart.CFrame)
  452. end
  453. end
  454. ))
  455. end
  456.  
  457. Apply_Health_Buff = function(amount, duration)
  458.  
  459. coroutine.resume(coroutine.create(function()
  460.  
  461. if amount > 0 and duration > 0 then
  462. Max_Health = Max_Health + amount
  463. coroutine.resume(coroutine.create(function()
  464.  
  465. wait()
  466. Humanoid.Health = Humanoid.Health + amount
  467. end
  468. ))
  469. MakeText("+" .. amount .. " Max Health", FONT, 0.3, 255, 170, 0, 0, 0, 0, RootPart.CFrame)
  470. wait(duration)
  471. Max_Health = Max_Health - amount
  472. MakeText("-" .. amount .. " Max Health", FONT, 0.3, 255, 170, 0, 0, 0, 0, RootPart.CFrame)
  473. end
  474. end
  475. ))
  476. end
  477.  
  478.  
  479. FindHum = function(parent)
  480.  
  481. local hm = nil
  482. for _,HM in pairs(parent:GetChildren()) do
  483. if HM:IsA("Humanoid") then
  484. hm = HM
  485. end
  486. end
  487. return hm
  488. end
  489.  
  490.  
  491. ArtificialHB = Instance.new("BindableEvent", script)
  492. ArtificialHB.Name = "Heartbeat"
  493. script:WaitForChild("Heartbeat")
  494. frame = 0.033333333333333
  495. tf = 0
  496. allowframeloss = false
  497. tossremainder = false
  498. lastframe = tick()
  499. script.Heartbeat:Fire()
  500. game:GetService("RunService").Heartbeat:connect(function(s, p)
  501. tf = tf + s
  502. if frame <= tf then
  503. if allowframeloss then
  504. script.Heartbeat:Fire()
  505. lastframe = tick()
  506. else
  507. for i = 1, math.floor(tf / frame) do
  508. script.Heartbeat:Fire()
  509. end
  510. lastframe = tick()
  511. end
  512. if tossremainder then
  513. tf = 0
  514. else
  515. tf = tf - frame * math.floor(tf / frame)
  516. end
  517. end
  518. end
  519. )
  520. swait = function(num)
  521. if num == 0 or num == nil then
  522. ArtificialHB.Event:wait()
  523. else
  524. for i = 0, num do
  525. ArtificialHB.Event:wait()
  526. end
  527. end
  528. end
  529.  
  530. local DamageFunction = function(Hit, IsRan, MinDam, MaxDam, HKB, Knockback, DamType, Property, Duration, HDrag, DragDuration, SoEff, SoID, SoPit, SoVol)
  531.  
  532. local humanoid = FindHum(Hit.Parent)
  533. if humanoid and humanoid ~= Humanoid then
  534. local IsSafe = true
  535. local Deb = humanoid:FindFirstChild("ChaosDebounce")
  536. if Deb then
  537. local Cre = Deb:FindFirstChild("Creator")
  538. if Cre and Cre.Value == Player.UserId then
  539. IsSafe = false
  540. end
  541. end
  542. if IsSafe then
  543. local deb = Inst("BoolValue", humanoid)
  544. deb.Name = "ChaosDebounce"
  545. local cre = Inst("NumberValue", deb)
  546. cre.Name = "Creator"
  547. cre.Value = Player.UserId
  548. debServ:AddItem(deb, Duration)
  549. debServ:AddItem(cre, Duration)
  550. local Damage = 1
  551. if IsRan then
  552. Damage = rand(MinDam, MaxDam)
  553. else
  554. Damage = MaxDam
  555. end
  556. local this_nigga_had_op_health = false
  557. if SoEff then
  558. local HitSound = Sound(Hit, "http://roblox.com/asset/?id=" .. SoID .. "", SoVol, SoPit, false)
  559. debServ:AddItem(HitSound, 6)
  560. end
  561. -- DECOMPILER ERROR at PC100: Unhandled construct in 'MakeBoolean' P1
  562.  
  563. if (DamType == "Compensate" or string.sub(DamType, 1, 10) == "Compensate") and (humanoid.MaxHealth >= 100000 or humanoid.MaxHealth == 0) then
  564. if humanoid.MaxHealth >= 1000000000 or humanoid.MaxHealth == 0 then
  565. humanoid.MaxHealth = 100
  566. this_nigga_had_op_health = true
  567. end
  568. Damage = Damage * (humanoid.MaxHealth / 100)
  569. end
  570. if humanoid.MaxHealth >= 100000000 or humanoid.MaxHealth == 0 then
  571. this_nigga_had_op_health = true
  572. humanoid.MaxHealth = 100
  573. end
  574. if Damage_Buff > 0 then
  575. Damage = Damage * Damage_Buff
  576. end
  577. humanoid.Health = humanoid.Health - Damage
  578. if humanoid.MaxHealth / 4 <= Damage then
  579. MakeText("-" .. Damage .. "", "SourceSansBold", 0.3, 170, 0, 0, 255, 85, 0, Hit.CFrame)
  580. else
  581. local mtc = BrickColor.new("Really black").Color
  582. MakeText("-" .. Damage .. "", FONT, 0.3, mtc.r * 255, mtc.g * 255, mtc.b * 255, 0, 0, 0, Hit.CFrame)
  583. end
  584. do
  585. if HKB and (DamType ~= "SkyRocket" or DamType ~= "Compensate-SkyRocket") then
  586. if Property.Name ~= "Point" then
  587. humanoid:ChangeState(Enum.HumanoidStateType.FallingDown)
  588. local KBCF = Cf(Hit.Position, Property.Position)
  589. Hit.Velocity = KBCF.lookVector * -Knockback
  590. else
  591. do
  592. Hit.Velocity = Property.CFrame.lookVector * Knockback
  593. if (DamType == "Normal" and DamType == "Stun") or DamType == "Compensate-Stun" then
  594. MakeText("Stunned", FONT, 0.3, 255, 255, 0, 0, 0, 0, Hit.CFrame)
  595. humanoid:ChangeState(Enum.HumanoidStateType.FallingDown)
  596. local pos = Inst("BodyPosition", Hit)
  597. pos.MaxForce = Vec(huge, huge, huge)
  598. pos.Position = Hit.Position
  599. debServ:AddItem(pos, Duration * 10)
  600. else
  601. do
  602. if DamType == "LifeSteal" or DamType == "Compensate-LifeSteal" then
  603. Humanoid.Health = Humanoid.Health + Damage / 2
  604. MakeText("+" .. Damage / 2, FONT, 0.4, 0, 0, 0, 0, 255, 0, RootPart.CFrame)
  605. else
  606. if DamType == "MomentumStopper" or DamType == "Compensate-MomentumStopper" then
  607. local vel = Inst("BodyVelocity", Hit)
  608. vel.Name = "MomentumStopper"
  609. vel.MaxForce = Vec(huge, huge, huge)
  610. vel.Velocity = Vec(0, 0, 0)
  611. debServ:AddItem(vel, 3)
  612. else
  613. do
  614. if DamType == "Knockdown" or DamType == "Compensate-Knockdown" then
  615. humanoid:ChangeState(Enum.HumanoidStateType.FallingDown)
  616. else
  617. if DamType == "SkyRocket" or DamType == "Compensate-SkyRocket" then
  618. humanoid:ChangeState(Enum.HumanoidStateType.FallingDown)
  619. Hit.Velocity = Vec(0, Knockback, 0)
  620. if rand(1, 4) == 1 then
  621. local Twista = Inst("BodyAngularVelocity", Hit)
  622. Twista.MaxTorque = Vec(1000000, 1000000, 1000000)
  623. Twista.AngularVelocity = Vec(rand(-2, 2) * (Knockback / 2), rand(-2, 2) * (Knockback / 2), rand(-2, 2) * (Knockback / 2))
  624. debServ:AddItem(Twista, 0.01)
  625. end
  626. else
  627. do
  628. if DamType == "FreezeStun" or DamType == "Compensate-FreezeStun" then
  629. MakeText("Stunned", FONT, 0.3, 0, 0, 0, 255, 170, 0, Hit.CFrame)
  630. coroutine.resume(coroutine.create(function()
  631.  
  632. local ti = 0
  633. local hHead = Hit.Parent:FindFirstChild("Head")
  634. if hHead then
  635. hHead = Hit
  636. local h = Inst("Part", F2)
  637. h.Size = Vec(0.2, 0.2, 0.2)
  638. h.CanCollide = false
  639. h.Transparency = 1
  640. h.Position = hHead.Position
  641. local hWELD = Inst("Weld", h)
  642. hWELD.Part0 = hHead
  643. hWELD.Part1 = h
  644. hWELD.C0 = Cf(0, -4, 0)
  645. repeat
  646. ti = ti + 0.1
  647. for _,p in pairs(humanoid.Parent:GetChildren()) do
  648. if p:IsA("BasePart") then
  649. p.Anchored = true
  650. end
  651. end
  652. swait()
  653. humanoid:ChangeState(Enum.HumanoidStateType.FallingDown)
  654. local p1 = hHead.Position + Vec(rand(-200, 200) / 100, -(hHead.Size.y * 1.5), rand(-200, 200) / 100)
  655. local p0 = h.Position
  656. Lightning(p0, p1, 5, 3, "Deep orange", "Neon", 0.1, 0.2, 0.2)
  657. until Duration * 12 <= ti
  658. for _,p in pairs(humanoid.Parent:GetChildren()) do
  659. if p:IsA("BasePart") then
  660. p.Anchored = false
  661. end
  662. end
  663. debServ:AddItem(h, 0)
  664. end
  665. end
  666. ))
  667. else
  668. if DamType == "KnockDownFreezeStun" or DamType == "Compensate-KnockDownFreezeStun" then
  669. MakeText("Stunned", FONT, 0.3, 0, 0, 0, 255, 64, 0, Hit.CFrame)
  670. coroutine.resume(coroutine.create(function()
  671.  
  672. local ti = 0
  673. local scf = nil
  674. local h = Inst("Part", F2)
  675. h.Size = Vec(0.2, 0.2, 0.2)
  676. h.CanCollide = false
  677. h.Anchored = true
  678. h.Transparency = 1
  679. h.Position = Hit.Position
  680. h.CFrame = h.CFrame * Euler(rad(-90), 0, 0)
  681. local IL = {Character, Hit.Parent}
  682. local Ground, Pos = workspace:FindPartOnRayWithIgnoreList(Ray.new(h.Position, h.CFrame.lookVector.Unit * 999), IL, true, true)
  683. if Ground then
  684. Hit.CFrame = Cf(Pos) * Euler(rad(-90), 0, 0)
  685. scf = Cf(Pos) * Euler(rad(-90), 0, 0)
  686. end
  687. repeat
  688. ti = ti + 0.1
  689. for _,p in pairs(humanoid.Parent:GetChildren()) do
  690. if p:IsA("BasePart") then
  691. p.Anchored = true
  692. end
  693. end
  694. Hit.CFrame = scf
  695. swait()
  696. humanoid:ChangeState(Enum.HumanoidStateType.FallingDown)
  697. until Duration * 7 <= ti
  698. for _,p in pairs(humanoid.Parent:GetChildren()) do
  699. if p:IsA("BasePart") then
  700. p.Anchored = false
  701. end
  702. end
  703. debServ:AddItem(h, 0)
  704. end
  705. ))
  706. end
  707. end
  708. if HDrag then
  709. humanoid:ChangeState(Enum.HumanoidStateType.FallingDown)
  710. local pos = Inst("BodyPosition", Hit)
  711. pos.MaxForce = Vec(huge, huge, huge)
  712. pos.Position = Drag_To_Part.Position
  713. local d = Inst("NumberValue", pos)
  714. d.Name = "Duration"
  715. d.Value = DragDuration
  716. table.insert(DragTable, pos)
  717. end
  718. do
  719. if this_nigga_had_op_health then
  720. coroutine.resume(coroutine.create(function()
  721.  
  722. swait()
  723. Damage = Damage * 2
  724. humanoid.Health = humanoid.Health - Damage
  725. MakeText("-" .. Damage .. "", FONT, 0.4, 0, 0, 0, 0, 0, 91, Hit.CFrame)
  726. end
  727. ))
  728. end
  729. end
  730. end
  731. end
  732. end
  733. end
  734. end
  735. end
  736. end
  737. end
  738. end
  739. end
  740. end
  741. end
  742. end
  743. end
  744. end
  745.  
  746. MagniDamage = function(Part, range, isRan, mindam, maxdam, hkb, knock, DType, dur, hd, dd, soe, soid, sopit, sovol)
  747.  
  748. for _,c in pairs(workspace:GetChildren()) do
  749. local hum = FindHum(c)
  750. if hum and hum ~= Humanoid then
  751. local head = c:FindFirstChild("Head")
  752. local tor = c:FindFirstChild("Torso")
  753. local larm = c:FindFirstChild("Left Arm")
  754. local rarm = c:FindFirstChild("Right Arm")
  755. local lleg = c:FindFirstChild("Left Leg")
  756. local rleg = c:FindFirstChild("Right Leg")
  757. local Dis = range
  758. local Par = nil
  759. if head then
  760. local Mag = (head.Position - Part.Position).magnitude
  761. if Mag <= Dis then
  762. Dis = Mag
  763. Par = head
  764. end
  765. end
  766. if tor then
  767. local Mag = (tor.Position - Part.Position).magnitude
  768. if Mag <= Dis then
  769. Dis = Mag
  770. Par = tor
  771. end
  772. end
  773. if rarm then
  774. local Mag = (rarm.Position - Part.Position).magnitude
  775. if Mag <= Dis then
  776. Dis = Mag
  777. Par = rarm
  778. end
  779. end
  780. if larm then
  781. local Mag = (larm.Position - Part.Position).magnitude
  782. if Mag <= Dis then
  783. Dis = Mag
  784. Par = larm
  785. end
  786. end
  787. if rleg then
  788. local Mag = (rleg.Position - Part.Position).magnitude
  789. if Mag <= Dis then
  790. Dis = Mag
  791. Par = rleg
  792. end
  793. end
  794. if lleg then
  795. local Mag = (lleg.Position - Part.Position).magnitude
  796. if Mag <= Dis then
  797. Dis = Mag
  798. Par = lleg
  799. end
  800. end
  801. if Par then
  802. DamageFunction(Par, isRan, mindam, maxdam, hkb, knock, DType, Part, dur, hd, dd, soe, soid, sopit, sovol)
  803. end
  804. -- DECOMPILER ERROR at PC113: LeaveBlock: unexpected jumping out DO_STMT
  805.  
  806. -- DECOMPILER ERROR at PC113: LeaveBlock: unexpected jumping out DO_STMT
  807.  
  808. -- DECOMPILER ERROR at PC113: LeaveBlock: unexpected jumping out DO_STMT
  809.  
  810. -- DECOMPILER ERROR at PC113: LeaveBlock: unexpected jumping out DO_STMT
  811.  
  812. -- DECOMPILER ERROR at PC113: LeaveBlock: unexpected jumping out DO_STMT
  813.  
  814. -- DECOMPILER ERROR at PC113: LeaveBlock: unexpected jumping out DO_STMT
  815.  
  816. -- DECOMPILER ERROR at PC113: LeaveBlock: unexpected jumping out IF_THEN_STMT
  817.  
  818. -- DECOMPILER ERROR at PC113: LeaveBlock: unexpected jumping out IF_STMT
  819.  
  820. end
  821. end
  822. end
  823.  
  824.  
  825.  
  826.  
  827.  
  828.  
  829. CreatePart = function(className, parent, Brickcolor, Material, Transparency, Reflectance, Name, Size, Position, Rotation, MeshClass, MeshScale, MeshId, MeshType)
  830.  
  831. local Part = Instance.new(className, parent)
  832. Part.BrickColor = BrickColor.new(Brickcolor)
  833. Part.Transparency = Transparency
  834. Part.Reflectance = Reflectance
  835. Part.Material = Material
  836. Part.Name = Name
  837. Part.Anchored = true
  838. Part.CanCollide = false
  839. Part.Locked = true
  840. Part.Size = Size
  841. Part.Position = Position
  842. Part.Rotation = Rotation
  843. Part.TopSurface = "SmoothNoOutlines"
  844. Part.BottomSurface = "SmoothNoOutlines"
  845. Part.FrontSurface = "SmoothNoOutlines"
  846. Part.BackSurface = "SmoothNoOutlines"
  847. Part.RightSurface = "SmoothNoOutlines"
  848. Part.LeftSurface = "SmoothNoOutlines"
  849. local Mesh = Instance.new(MeshClass, Part)
  850. Mesh.Scale = MeshScale
  851. if MeshClass == "SpecialMesh" then
  852. Mesh.MeshId = MeshId
  853. Mesh.MeshType = MeshType
  854. end
  855. return Part
  856. end
  857.  
  858.  
  859.  
  860. rayCast = function(Pos, Dir, Max, Ignore)
  861.  
  862. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  863. end
  864.  
  865. local Point = Torso.CFrame * Cf(0, Torso.Size.Y, 0)
  866. LastPoint = Point
  867. effect = function(Color, Ref, LP, P1, returnn)
  868.  
  869. local effectsmsh = Instance.new("CylinderMesh")
  870. effectsmsh.Scale = Vector3.new(0.2, 1, 0.2)
  871. effectsmsh.Name = "Mesh"
  872. local effectsg = Instance.new("Part")
  873. effectsg.formFactor = 3
  874. effectsg.CanCollide = false
  875. effectsg.Name = "Eff"
  876. effectsg.Locked = true
  877. effectsg.Anchored = true
  878. effectsg.Size = Vector3.new(0.5, 1, 0.5)
  879. effectsg.Parent = F2
  880. effectsmsh.Parent = effectsg
  881. effectsg.BrickColor = BrickColor.new(Color)
  882. effectsg.Reflectance = Ref
  883. local point1 = P1
  884. local mg = (LP.p - point1.p).magnitude
  885. effectsg.Size = Vector3.new(0.5, mg, 0.5)
  886. effectsg.CFrame = Cf((LP.p + point1.p) / 2, point1.p) * CFrame.Angles(math.rad(90), 0, 0)
  887. effectsmsh.Scale = Vector3.new(0.2, 1, 0.2)
  888. game:GetService("Debris"):AddItem(effectsg, 2)
  889. if returnn then
  890. return effectsg
  891. end
  892. coroutine.resume(coroutine.create(function(Part, Mesh)
  893.  
  894. if not returnn then
  895. for i = 0, 1, 0.05 do
  896. swait()
  897. Part.Transparency = 1 * i
  898. Mesh.Scale = Vector3.new(0.5 - 0.5 * i, 1, 0.5 - 0.5 * i)
  899. end
  900. Part.Parent = nil
  901. end
  902. end
  903. ), effectsg, effectsmsh)
  904. end
  905.  
  906. local CFrameFromTopBack = function(at, top, back)
  907.  
  908. local right = top:Cross(back)
  909. return CFrame.new(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
  910. end
  911.  
  912. NoOutline = function(Part)
  913.  
  914. Part.TopSurface = 10
  915. end
  916.  
  917. pert = function(parent, reflectance, transparency, brickcolor, name, size, material)
  918.  
  919. local fp = Inst("Part")
  920. fp.Parent = parent
  921. fp.Reflectance = reflectance
  922. fp.Transparency = transparency
  923. fp.CanCollide = false
  924. fp.Locked = true
  925. fp.BrickColor = brickcolor
  926. fp.Name = name
  927. fp.Size = size
  928. fp.Position = Torso.Position
  929. NoOutline(fp)
  930. fp.Material = material
  931. fp:BreakJoints()
  932. return fp
  933. end
  934.  
  935. mesh = function(Mesh, part, meshtype, meshid, offset, scale)
  936.  
  937. local mesh = Inst(Mesh)
  938. mesh.Parent = part
  939. if Mesh == "SpecialMesh" then
  940. mesh.MeshType = meshtype
  941. mesh.MeshId = meshid
  942. end
  943. mesh.Offset = offset
  944. mesh.Scale = scale
  945. return mesh
  946. end
  947.  
  948. MagicBlock = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, Delay)
  949.  
  950. local prt = pert(F2, 0, 0, brickcolor, "Effect", Vec(), material)
  951. prt.Anchored = true
  952. prt.CFrame = cframe
  953. local msh = mesh("BlockMesh", prt, "", "", Vec(0, 0, 0), Vec(x1, y1, z1))
  954. game:GetService("Debris"):AddItem(prt, 5)
  955. table.insert(Effects, {prt, "Block1", Delay, x3, y3, z3})
  956. end
  957.  
  958. MagicBlock2 = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, Delay)
  959.  
  960. local prt = pert(F2, 0, 0, brickcolor, "Effect", Vec(), material)
  961. prt.Anchored = true
  962. prt.CFrame = cframe
  963. local msh = mesh("BlockMesh", prt, "", "", Vec(0, 0, 0), Vec(x1, y1, z1))
  964. game:GetService("Debris"):AddItem(prt, 5)
  965. table.insert(Effects, {prt, "Disappear", Delay, x3, y3, z3})
  966. end
  967.  
  968. MagicSpikeBall = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, Delay)
  969.  
  970. local prt = pert(F2, 0, 0, brickcolor, "Effect", Vec(), material)
  971. prt.Anchored = true
  972. prt.CFrame = cframe
  973. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/Asset/?id=9982590", Vec(0, 0, 0), Vec(x1, y1, z1))
  974. game:GetService("Debris"):AddItem(prt, 5)
  975. table.insert(Effects, {prt, "Block1", Delay, x3, y3, z3})
  976. end
  977.  
  978. MagicCircle = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, Delay)
  979.  
  980. local prt = pert(F2, 0, 0, brickcolor, "Effect", Vec(), material)
  981. prt.Anchored = true
  982. prt.CFrame = cframe
  983. local msh = mesh("SpecialMesh", prt, "Sphere", "", Vec(0, 0, 0), Vec(x1, y1, z1))
  984. game:GetService("Debris"):AddItem(prt, 5)
  985. table.insert(Effects, {prt, "Cylinder", Delay, x3, y3, z3})
  986. end
  987.  
  988. MagicWave = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, Delay)
  989.  
  990. local prt = pert(F2, 0, 0, brickcolor, "Effect", Vec(), material)
  991. prt.Anchored = true
  992. prt.CFrame = cframe
  993. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", Vec(0, 0, 0), Vec(x1, y1, z1))
  994. game:GetService("Debris"):AddItem(prt, 5)
  995. table.insert(Effects, {prt, "Cylinder", Delay, x3, y3, z3})
  996. end
  997.  
  998. MagicWave2 = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, Delay)
  999.  
  1000. local prt = pert(F2, 0, 0, brickcolor, "Effect", Vec(), material)
  1001. prt.Anchored = true
  1002. prt.CFrame = cframe
  1003. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", Vec(0, 0, 0), Vec(x1, y1, z1))
  1004. game:GetService("Debris"):AddItem(prt, 5)
  1005. table.insert(Effects, {prt, "Wave", Delay, x3, y3, z3})
  1006. end
  1007.  
  1008. MagicCylinder = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, Delay)
  1009.  
  1010. local prt = pert(F2, 0, 0, brickcolor, "Effect", Vec(0.2, 0.2, 0.2), material)
  1011. prt.Anchored = true
  1012. prt.CFrame = cframe
  1013. local msh = mesh("SpecialMesh", prt, "Head", "", Vec(0, 0, 0), Vec(x1, y1, z1))
  1014. game:GetService("Debris"):AddItem(prt, 5)
  1015. Effects[#Effects + 1] = {prt, "Cylinder", Delay, x3, y3, z3}
  1016. end
  1017.  
  1018. MagicCylinder2 = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, Delay)
  1019.  
  1020. local prt = pert(F2, 0, 0, brickcolor, "Effect", Vec(0.2, 0.2, 0.2), material)
  1021. prt.Anchored = true
  1022. prt.CFrame = cframe
  1023. local msh = mesh("CylinderMesh", prt, "", "", Vec(0, 0, 0), Vec(x1, y1, z1))
  1024. game:GetService("Debris"):AddItem(prt, 5)
  1025. Effects[#Effects + 1] = {prt, "Cylinder", Delay, x3, y3, z3}
  1026. end
  1027.  
  1028. MagicBlood = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, Delay)
  1029.  
  1030. local prt = pert(F2, 0, 0, brickcolor, "Effect", Vec(), material)
  1031. prt.Anchored = true
  1032. prt.CFrame = cframe
  1033. local msh = mesh("SpecialMesh", prt, "Sphere", "", Vec(0, 0, 0), Vec(x1, y1, z1))
  1034. game:GetService("Debris"):AddItem(prt, 5)
  1035. table.insert(Effects, {prt, "Blood", Delay, x3, y3, z3})
  1036. end
  1037.  
  1038. MagicRing = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, Delay)
  1039.  
  1040. local prt = pert(F2, 0, 0, brickcolor, "Effect", Vec(), material)
  1041. prt.Anchored = true
  1042. prt.CFrame = cframe
  1043. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=3270017", Vec(0, 0, 0), Vec(x1, y1, z1))
  1044. game:GetService("Debris"):AddItem(prt, 5)
  1045. table.insert(Effects, {prt, "Cylinder", Delay, x3, y3, z3})
  1046. end
  1047.  
  1048. MagicRing2 = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, Delay)
  1049.  
  1050. local prt = pert(F2, 0, 0, brickcolor, "Effect", Vec(), material)
  1051. prt.Anchored = true
  1052. prt.CFrame = cframe
  1053. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=3270017", Vec(0, 0, 0), Vec(x1, y1, z1))
  1054. game:GetService("Debris"):AddItem(prt, 5)
  1055. table.insert(Effects, {prt, "Blood", Delay, x3, y3, z3})
  1056. end
  1057.  
  1058. ElecEffect = function(brickCol, Mat, cff, x, y, z)
  1059.  
  1060. local prt = pert(F2, 0, 0, brickCol, "Part", Vec(1, 1, 1), Mat)
  1061. prt.Anchored = true
  1062. prt.CFrame = cff * Cf(rand(-x, x), rand(-y, y), rand(-z, z))
  1063. prt.CFrame = Cf(prt.Position)
  1064. local xval = math.random() / 2
  1065. local yval = math.random() / 2
  1066. local zval = math.random() / 2
  1067. local msh = mesh("BlockMesh", prt, "", "", Vec(0, 0, 0), Vec(xval, yval, zval))
  1068. Effects[#Effects + 1] = {prt, "Elec", 0.1, x, y, z, xval, yval, zval}
  1069. end
  1070.  
  1071. Lightning = function(p0, p1, tym, ofs, col, mat, th, tra, last)
  1072.  
  1073. local magz = (p0 - p1).magnitude
  1074. local curpos = p0
  1075. local trz = {-ofs, ofs}
  1076. for i = 1, tym do
  1077. local li = Instance.new("Part", F2)
  1078. li.TopSurface = 0
  1079. li.BottomSurface = 0
  1080. li.Anchored = true
  1081. li.Transparency = tra or 0.4
  1082. li.BrickColor = BrickColor.new(col)
  1083. li.Material = mat
  1084. li.Material = "Neon"
  1085. li.formFactor = "Custom"
  1086. li.CanCollide = false
  1087. li.Size = Vector3.new(th, th, magz / tym)
  1088. local ofz = Vector3.new(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)])
  1089. local trolpos = CFrame.new(curpos, p1) * CFrame.new(0, 0, magz / tym).p + ofz
  1090. if tym == i then
  1091. local magz2 = (curpos - p1).magnitude
  1092. li.Size = Vector3.new(th, th, magz2)
  1093. li.CFrame = CFrame.new(curpos, p1) * CFrame.new(0, 0, -magz2 / 2)
  1094. game:GetService("Debris"):AddItem(li, last)
  1095. else
  1096. li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(0, 0, magz / tym / 2)
  1097. curpos = li.CFrame * CFrame.new(0, 0, magz / tym / 2).p
  1098. game:GetService("Debris"):AddItem(li, last)
  1099. end
  1100. end
  1101. end
  1102.  
  1103. Triangle = function(a, b, c, tcol, tmat)
  1104.  
  1105. local edg1 = (c-a):Dot((b-a).unit)
  1106. local edg2 = (a-b):Dot((c-b).unit)
  1107. local edg3 = (b-c):Dot((a-c).unit)
  1108. if edg1 <= (b - a).magnitude and edg1 >= 0 then
  1109. a = a
  1110. elseif edg2 <= (c - b).magnitude and edg2 >= 0 then
  1111. a = b
  1112. elseif edg3 <= (a - c).magnitude and edg3 >= 0 then
  1113. a = c
  1114. else
  1115. return
  1116. end
  1117. local len1 = (c-a):Dot((b-a).unit)
  1118. local len2 = (b-a).magnitude - len1
  1119. local width = (a + (b-a).unit*len1 - c).magnitude
  1120. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  1121. local list = {}
  1122. if len1 > 0.01 then
  1123. local w1 = Inst("WedgePart", F2)
  1124. w1.Material = tmat
  1125. w1.BrickColor = BC(tcol)
  1126. w1.Transparency = 0
  1127. w1.Reflectance = 0
  1128. w1.CanCollide = false
  1129. NoOutline(w1)
  1130. local sz = Vec(0.2, width, len1)
  1131. w1.Size = sz
  1132. local sp = Inst("SpecialMesh", w1)
  1133. sp.MeshType = "Wedge"
  1134. sp.Scale = Vec(0, 1, 1) * sz / w1.Size
  1135. w1:BreakJoints()
  1136. w1.Anchored = true
  1137. w1.Transparency = 0.7
  1138. debServ:AddItem(w1, 25)
  1139. table.insert(Effects, {w1, "Disappear", 0.045})
  1140. w1.CFrame = maincf * CFrame.Angles(math.pi, 0, math.pi / 2) * CFrame.new(0, width / 2, len1 / 2)
  1141. table.insert(list, w1)
  1142. end
  1143. if len2 > 0.01 then
  1144. local w2 = Inst("WedgePart", F2)
  1145. w2.Material = tmat
  1146. w2.BrickColor = BC(tcol)
  1147. w2.Transparency = 0
  1148. w2.Reflectance = 0
  1149. w2.CanCollide = false
  1150. NoOutline(w2)
  1151. local sz = Vec(0.2, width, len2)
  1152. w2.Size = sz
  1153. local sp = Inst("SpecialMesh", w2)
  1154. sp.MeshType = "Wedge"
  1155. sp.Scale = Vec(0, 1, 1) * sz / w2.Size
  1156. w2:BreakJoints()
  1157. w2.Anchored = true
  1158. w2.Transparency = 0.7
  1159. debServ:AddItem(w2, 25)
  1160. table.insert(Effects, {w2, "Disappear", 0.045})
  1161. w2.CFrame = maincf * CFrame.Angles(math.pi, math.pi, -math.pi / 2) * CFrame.new(0, width / 2, -len1 - len2 / 2)
  1162. table.insert(list, w2)
  1163. end
  1164. return unpack(list)
  1165. end
  1166.  
  1167.  
  1168. runServ.RenderStepped:connect(function()
  1169. if #Effects > 0 then
  1170. for e = 1, #Effects do
  1171. if Effects[e] ~= nil then
  1172. local Thing = Effects[e]
  1173. if Thing ~= nil then
  1174. local Part = Thing[1]
  1175. local Mode = Thing[2]
  1176. local Delay = Thing[3]
  1177. local IncX = Thing[4]
  1178. local IncY = Thing[5]
  1179. local IncZ = Thing[6]
  1180. if Thing[1].Transparency <= 1 then
  1181. if Thing[2] == "Block1" then
  1182. Thing[1].CFrame = Thing[1].CFrame * Euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1183. Mesh = Thing[1]:FindFirstChild("Mesh")
  1184. if not Mesh then
  1185. Mesh = Instance.new("BlockMesh")
  1186. end
  1187. Mesh.Scale = Mesh.Scale + Vec(Thing[4], Thing[5], Thing[6])
  1188. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1189. elseif Thing[2] == "Wave" then
  1190. Thing[1].CFrame = Thing[1].CFrame * CFrame.Angles(0, rad(10), 0)
  1191. Mesh = Thing[1]:FindFirstChild("Mesh")
  1192. if not Mesh then
  1193. Mesh = Instance.new("BlockMesh")
  1194. end
  1195. Mesh.Scale = Mesh.Scale + Vec(Thing[4], Thing[5], Thing[6])
  1196. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1197. elseif Thing[2] == "Cylinder" then
  1198. Mesh = Thing[1]:FindFirstChild("Mesh")
  1199. if not Mesh then
  1200. Mesh = Instance.new("BlockMesh")
  1201. end
  1202. Mesh.Scale = Mesh.Scale + Vec(Thing[4], Thing[5], Thing[6])
  1203. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1204. elseif Thing[2] == "Blood" then
  1205. Mesh = Thing[1]:FindFirstChild("Mesh")
  1206. if not Mesh then
  1207. Mesh = Instance.new("BlockMesh")
  1208. end
  1209. Thing[1].CFrame = Thing[1].CFrame * Cf(0, 0.5, 0)
  1210. Mesh.Scale = Mesh.Scale + Vec(Thing[4], Thing[5], Thing[6])
  1211. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1212. elseif Thing[2] == "Elec" then
  1213. Mesh = Thing[1]:FindFirstChild("Mesh")
  1214. if not Mesh then
  1215. Mesh = Instance.new("BlockMesh")
  1216. end
  1217. Mesh.Scale = Mesh.Scale + Vec(Thing[7], Thing[8], Thing[9])
  1218. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1219. elseif Thing[2] == "Disappear" then
  1220. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1221. end
  1222. else
  1223. Part.Parent = nil
  1224. debServ:AddItem(Part, 0)
  1225. table.remove(Effects, e)
  1226. end
  1227. end
  1228. end
  1229. end
  1230. end
  1231. end)
  1232.  
  1233.  
  1234.  
  1235.  
  1236.  
  1237.  
  1238. maus.KeyDown:connect(function(kei)
  1239. if string.byte(kei)==48 and not otheranims then
  1240. runnin=true
  1241. end
  1242. if kei=='w' then fldb.w=true end
  1243. if kei=='a' then fldb.a=true end
  1244. if kei=='s' then fldb.s=true end
  1245. if kei=='d' then fldb.d=true end
  1246. end)
  1247. maus.KeyUp:connect(function(kei)
  1248. if string.byte(kei)==48 and not otheranims then
  1249. runnin=false
  1250. end
  1251. if kei=='w' then fldb.w=false end
  1252. if kei=='a' then fldb.a=false end
  1253. if kei=='s' then fldb.s=false end
  1254. if kei=='d' then fldb.d=false end
  1255. end)
  1256.  
  1257.  
  1258.  
  1259.  
  1260.  
  1261.  
  1262. coroutine.wrap(function()
  1263. for i,x in pairs(hed:GetChildren()) do if x:IsA('Sound') then x:Destroy() end end end)()
  1264. function Lerp(a, b, i)
  1265. local com1 = {a.X, a.Y, a.Z, a:toEulerAnglesXYZ()}
  1266. local com2 = {b.X, b.Y, b.Z, b:toEulerAnglesXYZ()}
  1267. local calx = com1[1] + (com2[1] - com1[1]) * i
  1268. local caly = com1[2] + (com2[2] - com1[2]) * i
  1269. local calz = com1[3] + (com2[3] - com1[3]) * i
  1270. local cala = com1[4] + (com2[4] - com1[4]) * i
  1271. local calb = com1[5] + (com2[5] - com1[5]) * i
  1272. local calc = com1[6] + (com2[6] - com1[6]) * i
  1273. return CFrame.new(calx, caly, calz) * CFrame.Angles(cala, calb, calc)
  1274. end
  1275. function TwnSingleNumber(s,f,m)
  1276. local wot=s+(f-s)*m
  1277. return wot
  1278. end
  1279. function TwnVector3(q,w,e)
  1280. local begin={q.x,q.y,q.z}
  1281. local ending={w.x,w.y,w.z}
  1282. local bgx=begin[1]+(ending[1]-begin[1])*e
  1283. local bgy=begin[2]+(ending[2]-begin[2])*e
  1284. local bgz=begin[3]+(ending[3]-begin[3])*e
  1285. return Vector3.new(bgx,bgy,bgz)
  1286. end
  1287. newWeld = function(wld, wp0, wp1, wc0x, wc0y, wc0z)
  1288. wld = Instance.new("Weld", wp1)
  1289. wld.Part0 = wp0
  1290. wld.Part1 = wp1
  1291. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  1292. end
  1293. newWeld(law, torso, larm, -1.5, 0.5, 0)
  1294. newWeld(raw, torso, rarm, 1.5, 0.5, 0)
  1295. newWeld(llw, torso, lleg, -.5, -2, 0)
  1296. newWeld(rlw, torso, rleg, .5, -2, 0)
  1297. newWeld(hw, torso, hed, 0, 1.5, 0)
  1298. local rutwald=Instance.new('Weld',rutprt)
  1299. rutwald.Part0=rutprt
  1300. rutwald.Part1=torso
  1301. rutprt.Weld.C1=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),0)
  1302. larm.Weld.C1 = CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),0,0)
  1303. rarm.Weld.C1 = CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),0,0)
  1304. rleg.Weld.C1=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),0,0)
  1305. lleg.Weld.C1=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),0,0)
  1306.  
  1307. local function setupPart(part)
  1308. part.Anchored = true
  1309. part.FormFactor = 'Custom'
  1310. part.CanCollide = false
  1311. part.BrickColor = BrickColor.new("Dark indigo")
  1312. part.Material = "Neon"
  1313. part.TopSurface = 'SmoothNoOutlines'
  1314. part.BottomSurface = 'SmoothNoOutlines'
  1315. part.FrontSurface = 'SmoothNoOutlines'
  1316. part.BackSurface = 'SmoothNoOutlines'
  1317. part.LeftSurface = 'SmoothNoOutlines'
  1318. part.RightSurface = 'SmoothNoOutlines'
  1319. end
  1320.  
  1321. function CFrameFromTopBack(at, top, back)
  1322. local right = top:Cross(back)
  1323. return CFrame.new(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
  1324. end
  1325.  
  1326. function CreateTriangle(parent, a, b, c)
  1327. local this = {}
  1328. local mPart1 = Instance.new('WedgePart')
  1329. setupPart(mPart1)
  1330. local mPart2 = Instance.new('WedgePart')
  1331. setupPart(mPart2)
  1332. function this:Set(a, b, c) --[[ edg1 A ------|------>B --. '\ | / \ \part1|part2/ | \ cut / / Direction edges point in: edg3 \ / edg2 / (clockwise) \ / |/ \<- / ` \ / C --]]
  1333. local ab, bc, ca = b-a, c-b, a-c local abm, bcm, cam = ab.magnitude, bc.magnitude, ca.magnitude
  1334. local edg1 = math.abs(0.5 + ca:Dot(ab)/(abm*abm))
  1335. local edg2 = math.abs(0.5 + ab:Dot(bc)/(bcm*bcm))
  1336. local edg3 = math.abs(0.5 + bc:Dot(ca)/(cam*cam))
  1337. if edg1 < edg2 then
  1338. if edg1 < edg3 then
  1339. -- nothing to change
  1340. else
  1341. a, b, c = c, a, b
  1342. ab, bc, ca = ca, ab, bc
  1343. abm = cam
  1344. end
  1345. else
  1346. if edg2 < edg3 then
  1347. a, b, c = b, c, a
  1348. ab, bc, ca = bc, ca, ab
  1349. abm = bcm
  1350. else
  1351. a, b, c = c, a, b
  1352. ab, bc, ca = ca, ab, bc
  1353. abm = cam
  1354. end
  1355. end
  1356.  
  1357. local len1 = -ca:Dot(ab)/abm local len2 = abm - len1 local width = (ca + ab.unit*len1).magnitude
  1358. local maincf = CFrameFromTopBack(a, ab:Cross(bc).unit, -ab.unit)
  1359.  
  1360. mPart1.Parent = parent
  1361. mPart1.Size = Vector3.new(1,1,1)
  1362. mPart1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  1363. local Mesh = Instance.new("SpecialMesh",mPart1)
  1364. Mesh.MeshType = "Wedge"
  1365. Mesh.Scale = Vector3.new(0.005, width, len1)
  1366.  
  1367. mPart2.Parent = parent
  1368. mPart2.Size = Vector3.new(1,1,1)
  1369. mPart2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  1370. local Mesh = Instance.new("SpecialMesh",mPart2)
  1371. Mesh.MeshType = "Wedge"
  1372. Mesh.Scale = Vector3.new(0.005, width, len2)
  1373. end
  1374.  
  1375. function this:SetProperty(prop, value)
  1376. mPart1[prop] = value
  1377. mPart2[prop] = value
  1378. end
  1379.  
  1380. function this:GetProperty(prop)
  1381. return mPart1[prop]
  1382. end
  1383.  
  1384. this:Set(a, b, c)
  1385. function this:Destroy()
  1386. mPart1:Destroy()
  1387. mPart2:Destroy()
  1388. end
  1389. return this
  1390. end
  1391. function CreateTrail(Adornee, Axis)
  1392. local Axis = Axis or "X"
  1393.  
  1394. local trail = {}
  1395. trail.Triangles = {}
  1396. trail.Adornee = Adornee
  1397. trail.Axis = Axis
  1398.  
  1399. local L1, L2
  1400.  
  1401. function trail:Fade(speed)
  1402. local speed = speed or 0.01
  1403.  
  1404. for n, v in pairs(trail.Triangles) do
  1405. v:SetProperty("Transparency", v:GetProperty("Transparency") + speed)
  1406. if v:GetProperty("Transparency") >= 1 then
  1407. v:Destroy()
  1408.  
  1409. table.remove(trail.Triangles, n)
  1410. end
  1411. end
  1412. end
  1413.  
  1414. function trail:Update()
  1415. local adornee = trail.Adornee
  1416.  
  1417. local axis = trail.Axis
  1418. local Size = Vector3.new((axis == "X" and adornee.Size.X or 0), (axis == "Y" and adornee.Size.Y or 0), (axis == "Z" and adornee.Size.Z or 0))
  1419. local P1 = adornee.CFrame * CFrame.new(Size / 2)
  1420. local P2 = adornee.CFrame * CFrame.new(Size / -2)
  1421.  
  1422. if L1 and L2 then
  1423. table.insert(trail.Triangles, CreateTriangle(adornee, L1.p, L2.p, P1.p))
  1424. table.insert(trail.Triangles, CreateTriangle(adornee, P1.p, P2.p, L2.p))
  1425. end
  1426.  
  1427. L1, L2 = P1, P2
  1428. end
  1429.  
  1430. return trail
  1431. end
  1432.  
  1433.  
  1434.  
  1435.  
  1436.  
  1437.  
  1438. Player=game:GetService('Players').LocalPlayer
  1439. Character=Player.Character
  1440. Mouse=Player:GetMouse()
  1441. m=Instance.new('Model',Character)
  1442.  
  1443.  
  1444. local function weldBetween(a, b)
  1445. local weldd = Instance.new("ManualWeld")
  1446. weldd.Part0 = a
  1447. weldd.Part1 = b
  1448. weldd.C0 = CFrame.new()
  1449. weldd.C1 = b.CFrame:inverse() * a.CFrame
  1450. weldd.Parent = a
  1451. return weldd
  1452. end
  1453.  
  1454. it=Instance.new
  1455.  
  1456. function nooutline(part)
  1457. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  1458. end
  1459.  
  1460. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  1461. local fp=it("Part")
  1462. fp.Shape=formfactor
  1463. fp.Parent=parent
  1464. fp.Reflectance=reflectance
  1465. fp.Transparency=transparency
  1466. fp.CanCollide=false
  1467. fp.Locked=true
  1468. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  1469. fp.Name=name
  1470. fp.Size=size
  1471. fp.Position=torso.Position
  1472. nooutline(fp)
  1473. fp.Material=material
  1474. fp:BreakJoints()
  1475. return fp
  1476. end
  1477.  
  1478.  
  1479. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1480. local mesh=it(Mesh)
  1481. mesh.Parent=part
  1482. if Mesh=="SpecialMesh" then
  1483. mesh.MeshType=meshtype
  1484. mesh.MeshId=meshid
  1485. end
  1486. mesh.Offset=offset
  1487. mesh.Scale=scale
  1488. return mesh
  1489. end
  1490.  
  1491. function weld(parent,part0,part1,c0,c1)
  1492. local weld=it("Weld")
  1493. weld.Parent=parent
  1494. weld.Part0=part0
  1495. weld.Part1=part1
  1496. weld.C0=c0
  1497. weld.C1=c1
  1498. return weld
  1499. end
  1500.  
  1501. local Spheres = it("Model")
  1502. Spheres.Parent=Character
  1503.  
  1504.  
  1505. Main_Head=part(Enum.PartType.Ball,m,Enum.Material.Neon,0,0.4099999666214,"Mulberry","Handle",Vector3.new(2.96000004, 2.96000004, 2.96000004))
  1506. Main_Headweld=weld(m,Character["Torso"],Main_Head,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00997161865, 0.0349311829, -4.91999435, 1, 0, 0, 0, 0, -1, 0, 1, 0))
  1507. MainH_Part=part(Enum.PartType.Ball,Spheres,Enum.Material.Neon,0,0,"Really black","MainH_Part",Vector3.new(1.7518369, 1.7518369, 1.7518369))
  1508. MainH_Partweld=weld(m,Main_Head,MainH_Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -0.0603561401, 1.62124634e-005, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  1509.  
  1510.  
  1511. Main_RH=part(Enum.PartType.Cylinder,m,Enum.Material.Marble,0,0,"Eggplant","Handle",Vector3.new(0.200000003, 0.929999948, 0.929999948))
  1512. Main_RHweld=weld(m,Character["Right Leg"],Main_RH,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.959936023, 0.0700092316, -0.0149731636, 0, 0.999999881, 0, -1, 0, 0, 0, 0, 1))
  1513. Part=part(Enum.PartType.Block,m,Enum.Material.Marble,0,0,"Eggplant","Part",Vector3.new(2.08000016, 0.200000003, 0.200000003))
  1514. Partweld=weld(m,Main_RH,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.950025678, -0.479959488, 0, 0.999999762, 0, 0, 0, 1, 0, 0, 0, 1))
  1515. Part=part(Enum.PartType.Block,m,Enum.Material.Marble,0,0,"Eggplant","Part",Vector3.new(2.08000016, 0.200000003, 0.200000003))
  1516. Partweld=weld(m,Main_RH,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.950011849, 0.410047531, 0, 0.999999762, 0, 0, 0, 1, 0, 0, 0, 1))
  1517. Sphere_RH1=part(Enum.PartType.Ball,Spheres,Enum.Material.Neon,0,0,"Institutional white","Sphere_RH1",Vector3.new(0.559999943, 0.559999943, 0.559999943))
  1518. Sphere_RH1weld=weld(m,Main_RH,Sphere_RH1,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0.190037251, 0, 0, -1, 0, 0.999999762, 0, 0, 0, 0, 1))
  1519.  
  1520.  
  1521. TrailThingy1 = CreateTrail(Sphere_RH1,"Y")
  1522.  
  1523.  
  1524.  
  1525. Main_LH=part(Enum.PartType.Cylinder,m,Enum.Material.Marble,0,0,"Eggplant","Handle",Vector3.new(0.200000003, 0.929999948, 0.929999948))
  1526. Main_LHweld=weld(m,Character["Left Leg"],Main_LH,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.954887033, -7.62939453e-006, -0.0149731636, 0, 0.999999881, 0, -1, 0, 0, 0, 0, 1))
  1527. Part=part(Enum.PartType.Block,m,Enum.Material.Marble,0,0,"Eggplant","Part",Vector3.new(2.08000016, 0.200000003, 0.200000003))
  1528. Partweld=weld(m,Main_LH,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.95002377, -0.479957581, 0, 0.999999762, 0, 0, 0, 1, 0, 0, 0, 1))
  1529. Part=part(Enum.PartType.Block,m,Enum.Material.Marble,0,0,"Eggplant","Part",Vector3.new(2.08000016, 0.200000003, 0.200000003))
  1530. Partweld=weld(m,Main_LH,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.950009704, 0.410041809, 0, 0.999999762, 0, 0, 0, 1, 0, 0, 0, 1))
  1531. Sphere_LH1=part(Enum.PartType.Ball,Spheres,Enum.Material.Neon,0,0,"Institutional white","Sphere_LH1",Vector3.new(0.559999943, 0.559999943, 0.559999943))
  1532. Sphere_LH1weld=weld(m,Main_LH,Sphere_LH1,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0.190037251, 0, 0, -1, 0, 0.999999762, 0, 0, 0, 0, 1))
  1533.  
  1534. TrailThingy2 = CreateTrail(Sphere_LH1,"Y")
  1535.  
  1536.  
  1537. Main_RW=part(Enum.PartType.Cylinder,m,Enum.Material.Marble,0,0,"Eggplant","Handle",Vector3.new(0.200000003, 0.929999948, 0.929999948))
  1538. Main_RWweld=weld(m,Character["Right Arm"],Main_RW,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.964890003, -0.0200252533, -0.0149731636, 0, 0.999999881, 0, -1, 0, 0, 0, 0, 1))
  1539. Part=part(Enum.PartType.Block,m,Enum.Material.Marble,0,0,"Eggplant","Part",Vector3.new(2.08000016, 0.200000003, 0.200000003))
  1540. Partweld=weld(m,Main_RW,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.950019598, -0.479948044, 0, 0.999999762, 0, 0, 0, 1, 0, 0, 0, 1))
  1541. Part=part(Enum.PartType.Block,m,Enum.Material.Marble,0,0,"Eggplant","Part",Vector3.new(2.08000016, 0.200000003, 0.200000003))
  1542. Partweld=weld(m,Main_RW,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.950009584, 0.460039902, 0, 0.999999762, 0, 0, 0, 1, 0, 0, 0, 1))
  1543. Sphere_RW2=part(Enum.PartType.Ball,Spheres,Enum.Material.Neon,0,0,"Really black","Sphere_LW2",Vector3.new(0.559999943, 0.559999943, 0.559999943))
  1544. Sphere_RW2weld=weld(m,Main_RW,Sphere_RW2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -1.94488883, 0, 0, -1, 0, 0.999999762, 0, 0, 0, 0, 1))
  1545. Sphere_RW1=part(Enum.PartType.Ball,Spheres,Enum.Material.Neon,0,0,"Really black","Sphere_LW1",Vector3.new(0.559999943, 0.559999943, 0.559999943))
  1546. Sphere_RW1weld=weld(m,Main_RW,Sphere_RW1,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0.190035343, 0, 0, -1, 0, 0.999999762, 0, 0, 0, 0, 1))
  1547.  
  1548.  
  1549. TrailThingy3 = CreateTrail(Sphere_RW1,"Y")
  1550.  
  1551.  
  1552. Main_LW=part(Enum.PartType.Cylinder,m,Enum.Material.Marble,0,0,"Eggplant","Handle",Vector3.new(0.200000003, 0.929999948, 0.929999948))
  1553. Main_LWweld=weld(m,Character["Left Arm"],Main_LW,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.974956036, 0.0399856567, -0.0149731636, 0, 0.999999881, 0, -1, 0, 0, 0, 0, 1))
  1554. Part=part(Enum.PartType.Block,m,Enum.Material.Marble,0,0,"Eggplant","Part",Vector3.new(2.08000016, 0.200000003, 0.200000003))
  1555. Partweld=weld(m,Main_LW,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.950020552, -0.479957581, 0, 0.999999762, 0, 0, 0, 1, 0, 0, 0, 1))
  1556. Sphere_LW1=part(Enum.PartType.Ball,Spheres,Enum.Material.Neon,0,0,"Really black","Sphere_LW1",Vector3.new(0.559999943, 0.559999943, 0.559999943))
  1557. Sphere_LW1weld=weld(m,Main_LW,Sphere_LW1,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.52587891e-005, 0.190036297, 0, 0, -1, 0, 0.999999762, 0, 0, 0, 0, 1))
  1558. Sphere_LW2=part(Enum.PartType.Ball,Spheres,Enum.Material.Neon,0,0,"Really black","Sphere_LW2",Vector3.new(0.559999943, 0.559999943, 0.559999943))
  1559. Sphere_LW2weld=weld(m,Main_LW,Sphere_LW2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.52587891e-005, -1.98496461, 0, 0, -1, 0, 0.999999762, 0, 0, 0, 0, 1))
  1560. Part=part(Enum.PartType.Block,m,Enum.Material.Marble,0,0,"Eggplant","Part",Vector3.new(2.08000016, 0.200000003, 0.200000003))
  1561. Partweld=weld(m,Main_LW,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.950009584, 0.410041809, 0, 0.999999762, 0, 0, 0, 1, 0, 0, 0, 1))
  1562.  
  1563. TrailThingy5 = CreateTrail(Sphere_LW1,"Y")
  1564.  
  1565.  
  1566. local particleemitter = Instance.new("ParticleEmitter", MainH_Part)
  1567. PARSI = .5
  1568. particleemitter.Lifetime = NumberRange.new(0.2)
  1569. particleemitter.Speed = NumberRange.new(0)
  1570.  
  1571. game:service'RunService'.RenderStepped:connect(function()
  1572. particleemitter.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, PARSI), NumberSequenceKeypoint.new(1, PARSI)})
  1573. end)
  1574.  
  1575. particleemitter.Rate = 1000
  1576. particleemitter.Rotation = NumberRange.new(0, 360)
  1577. particleemitter.LightEmission = 1
  1578. particleemitter.Color = ColorSequence.new(Color3.new(0.639216, 0.227451, 1), Color3.new(0.639216, 0.227451, 1))
  1579. particleemitter.Texture = "http://www.roblox.com/asset/?id=243098098"
  1580. particleemitter.LockedToPart = true
  1581.  
  1582. local particleemitter = Instance.new("ParticleEmitter", MainH_Part)
  1583.  
  1584. particleemitter.Lifetime = NumberRange.new(0.2)
  1585. particleemitter.Speed = NumberRange.new(0)
  1586.  
  1587. game:service'RunService'.RenderStepped:connect(function()
  1588. particleemitter.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, PARSI), NumberSequenceKeypoint.new(1, PARSI)})
  1589. end)
  1590.  
  1591. particleemitter.Rate = 1000
  1592. particleemitter.Rotation = NumberRange.new(0, 360)
  1593. particleemitter.LightEmission = 1
  1594. particleemitter.Color = ColorSequence.new(Color3.new(0.639216, 0.227451, 1), Color3.new(0.639216, 0.227451, 1))
  1595. particleemitter.Texture = "http://www.roblox.com/asset/?id=243098098"
  1596. particleemitter.LockedToPart = true
  1597.  
  1598.  
  1599. local particleemitter = Instance.new("ParticleEmitter", MainH_Part)
  1600.  
  1601. particleemitter.Lifetime = NumberRange.new(0.2)
  1602. particleemitter.Speed = NumberRange.new(0)
  1603.  
  1604. game:service'RunService'.RenderStepped:connect(function()
  1605. particleemitter.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, PARSI), NumberSequenceKeypoint.new(1, PARSI)})
  1606. end)
  1607.  
  1608. particleemitter.Rate = 1000
  1609. particleemitter.Rotation = NumberRange.new(0, 360)
  1610. particleemitter.LightEmission = 1
  1611. particleemitter.Color = ColorSequence.new(Color3.new(0.639216, 0.227451, 1), Color3.new(0.639216, 0.227451, 1))
  1612. particleemitter.Texture = "http://www.roblox.com/asset/?id=243098098"
  1613. particleemitter.LockedToPart = true
  1614.  
  1615.  
  1616. local particleemitterglow = Instance.new("ParticleEmitter", MainH_Part)
  1617.  
  1618. particleemitterglow.Lifetime = NumberRange.new(1)
  1619. particleemitterglow.Speed = NumberRange.new(0)
  1620. particleemitterglow.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 10), NumberSequenceKeypoint.new(0.102, 1), NumberSequenceKeypoint.new(0.353, 8.063), NumberSequenceKeypoint.new(0.56, 2.938), NumberSequenceKeypoint.new(0.703, 8.563), NumberSequenceKeypoint.new(1, 0)})
  1621. particleemitterglow.Rate = 5
  1622. particleemitterglow.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.1, 0.5), NumberSequenceKeypoint.new(0.8, 0.5), NumberSequenceKeypoint.new(1, 1)})
  1623. particleemitterglow.Name = "ParticleEmitterGlow"
  1624. particleemitterglow.LightEmission = 1
  1625. particleemitterglow.Color = ColorSequence.new(Color3.new(0.333333, 0, 0), Color3.new(0.333333, 0, 0))
  1626. particleemitterglow.Texture = "http://www.roblox.com/asset/?id=243660373"
  1627. particleemitterglow.LockedToPart = true
  1628.  
  1629.  
  1630.  
  1631.  
  1632.  
  1633. game:service'RunService'.RenderStepped:connect(function()
  1634.  
  1635. if anim == "Sprinting" then
  1636. TrailThingy3:Update()
  1637. TrailThingy3:Fade(0.2)
  1638. TrailThingy5:Update()
  1639. TrailThingy5:Fade(0.2)
  1640. TrailThingy1:Update()
  1641. TrailThingy1:Fade(0.2)
  1642. TrailThingy2:Update()
  1643. TrailThingy2:Fade(0.2)
  1644. end
  1645.  
  1646. if anim ~= "Sprinting" then
  1647. TrailThingy3:Update()
  1648. TrailThingy3:Fade(1)
  1649. TrailThingy5:Update()
  1650. TrailThingy5:Fade(1)
  1651. TrailThingy1:Update()
  1652. TrailThingy1:Fade(1)
  1653. TrailThingy2:Update()
  1654. TrailThingy2:Fade(1)
  1655. end
  1656.  
  1657. if anim~=lastanim then
  1658. runtime=0
  1659. end
  1660. lastanim=anim
  1661. chr.Humanoid.CameraOffset=(rutprt.CFrame:toObjectSpace(hed.CFrame)).p+Vector3.new(0,-1.25,0)
  1662. syne=syne+.95
  1663. if not otheranims and not swimming then
  1664. if (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 1 and not chr.Humanoid.Jump then-- and torso.Velocity.y<5 and torso.Velocity.y>-5
  1665. anim="Idling"
  1666. elseif (rutprt.Velocity*Vector3.new(1, 0, 1)).magnitude > 1 and (rutprt.Velocity*Vector3.new(1, 0, 1)).magnitude < RunSpeed-10 and not chr.Humanoid.Jump then-- and torso.Velocity.y<5 and torso.Velocity.y>-5
  1667. anim="Walking"
  1668. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > RunSpeed-10 and not chr.Humanoid.Jump then-- and torso.Velocity.y<5 and torso.Velocity.y>-5
  1669. anim="Sprinting"
  1670. elseif torso.Velocity.y>5 and chr.Humanoid.Jump then
  1671. anim='Jumping'
  1672. elseif (torso.Velocity.y < -5) and chr.Humanoid.Jump then
  1673. anim='Falling'
  1674. end
  1675. end
  1676.  
  1677. if otheranims then return end
  1678. if anim=="Idling" then
  1679. idlesineinc=35
  1680. rutprt.Weld.C0=Lerp(rutprt.Weld.C0,CFrame.new(0,3-1*math.cos(syne/10),0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  1681.  
  1682. if not armmovments then
  1683. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.5,.525+math.cos(syne/idlesineinc)/25,0)*CFrame.Angles(0,0,math.rad(3)),.1)
  1684. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.5,.525+math.cos(syne/idlesineinc)/25,0)*CFrame.Angles(0,0,math.rad(-3)),.1)
  1685. end
  1686.  
  1687. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.55, -1.4-0.1*math.cos(syne/10), -0.55) * CFrame.Angles(math.rad(-10+1*math.cos(syne/10)), math.rad(10), math.rad(-0-2*math.cos(syne/10))), 0.4)
  1688. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.55, -2-0.1*math.cos(syne/10), 0) * CFrame.Angles(0, math.rad(-10), math.rad(0+2*math.cos(syne/10))), 0.4)
  1689. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5+math.cos(syne/idlesineinc)/50,0)*CFrame.Angles(math.cos(syne/idlesineinc)/40,0,0),.1)
  1690. end
  1691.  
  1692. if anim=="Walking" then
  1693.  
  1694. if not armmovments then
  1695. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.5,.525,0) * CFrame.Angles(math.rad(-30), math.rad(0), math.rad(-40)), 0.3)
  1696. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.5,.525,0)* CFrame.Angles(math.rad(-30), math.rad(0), math.rad(40)), 0.3)
  1697. end
  1698.  
  1699. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.55,-1.9-math.cos(syne/6)/10,-(math.cos(syne/6)/1.125))*CFrame.Angles(math.cos(syne/6)/1.125,0,math.rad(-2.5)),.1)
  1700. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.55,-1.9-math.cos(syne/6)/10,math.cos(syne/6)/1.125)*CFrame.Angles(-(math.cos(syne/6)/1.125),0,math.rad(2.5)),.1)
  1701. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.55+math.cos(syne/20)/50,0)*CFrame.Angles(-math.cos(syne/2.5)/10+math.rad(20),0,0),.1)
  1702. rutprt.Weld.C0=Lerp(rutprt.Weld.C0,CFrame.new(0,3+math.cos(syne/2.5)/15,math.cos(syne/2.5))*CFrame.Angles(math.cos(syne/2.5)/10+math.rad(-25),math.cos(syne/2.5)/10,math.cos(syne/4)/20+math.sin(rutprt.RotVelocity.y/2)/4),.1)
  1703. end
  1704.  
  1705. if anim=="Sprinting" then
  1706. ArmsTrail = true
  1707.  
  1708. if not armmovments then
  1709. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(-math.cos(syne/2.5)/10+math.rad(-55),0,math.rad(12.5)),.1)
  1710. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.5,.525,0)*CFrame.Angles(-math.cos(syne/2.5)/10+math.rad(-55),0,math.rad(-12.5)),.1)
  1711. end
  1712.  
  1713. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.55,-1.6-math.cos(syne/4)/4,-(math.cos(syne/4)*2)-math.rad(10))*CFrame.Angles(math.cos(syne/4)*2+math.rad(10),0,math.rad(-2.5)),.1)
  1714. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.55,-1.6-math.cos(syne/4)/4,math.cos(syne/4)*2-math.rad(10))*CFrame.Angles(-(math.cos(syne/4)*2)+math.rad(10),0,math.rad(2.5)),.1)
  1715. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.55+math.cos(syne/20)/50,0)*CFrame.Angles(-math.cos(syne/2.5)/10+math.rad(20),0,0),.1)
  1716. rutprt.Weld.C0=Lerp(rutprt.Weld.C0,CFrame.new(0,3+math.cos(syne/2.5)/15,math.cos(syne/2.5))*CFrame.Angles(math.cos(syne/3)/15+math.rad(-40),math.cos(syne/2.5)/10,math.cos(syne/4)/20+math.sin(rutprt.RotVelocity.y/2)/4),.1)
  1717. ArmsTrail = false
  1718. end
  1719.  
  1720. if anim=="Jumping" then
  1721.  
  1722. if not armmovments then
  1723. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(math.rad(10),0,math.rad(50)),.1)
  1724. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.5,.525,0)*CFrame.Angles(math.rad(10),0,math.rad(-50)),.1)
  1725. end
  1726.  
  1727. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.55,-1.4,0)*CFrame.Angles(math.rad(-17.5),0,math.rad(-2.5)),.1)
  1728. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.55,-1.1,-.1)*CFrame.Angles(math.rad(-17.5),0,math.rad(2.5)),.1)
  1729. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5+math.cos(syne/20)/50,0)*CFrame.Angles(math.cos(syne/20)/40,0,0),.1)
  1730. rutprt.Weld.C0=Lerp(rutprt.Weld.C0,CFrame.new(0,-.1+math.cos(syne/20)/20,0)*CFrame.Angles(math.rad(-15),math.rad(0),math.rad(0)),.1)
  1731. end
  1732.  
  1733. if anim=="Falling" then
  1734.  
  1735. if not armmovments then
  1736. rarm.Weld.C0=Lerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(math.rad(10),0,math.rad(70)),.035)
  1737. larm.Weld.C0=Lerp(larm.Weld.C0,CFrame.new(-1.5,.525,0)*CFrame.Angles(math.rad(10),0,math.rad(-70)),.035)
  1738. end
  1739.  
  1740. lleg.Weld.C0=Lerp(lleg.Weld.C0,CFrame.new(-.55,-1.2,0)*CFrame.Angles(math.rad(-14),0,math.rad(-2.5)),.035)
  1741. rleg.Weld.C0=Lerp(rleg.Weld.C0,CFrame.new(.55,-1.9,0)*CFrame.Angles(math.rad(0),0,math.rad(2.5)),.035)
  1742. hed.Weld.C0=Lerp(hed.Weld.C0,CFrame.new(0,1.5,-.3)*CFrame.Angles(math.rad(-40),0,0),.035)
  1743. rutprt.Weld.C0=Lerp(rutprt.Weld.C0,CFrame.new(0,-.1+math.cos(syne/20)/20,0)*CFrame.Angles(math.rad(10),math.rad(0),math.rad(0)),.035)
  1744. end
  1745.  
  1746.  
  1747.  
  1748.  
  1749. if runnin and not otheranims and not swimming then
  1750. chr.Humanoid.WalkSpeed=RunSpeed
  1751. elseif not runnin and not otheranims and not swimming then
  1752. chr.Humanoid.WalkSpeed=WlkSpeed
  1753. end
  1754. end)
  1755.  
  1756.  
  1757.  
  1758.  
  1759.  
  1760.  
  1761.  
  1762. --[[]]----[[Moves]]----[[]]--
  1763.  
  1764.  
  1765. for i = 0, 1, 0.1 do
  1766. swait()
  1767. MagicBlock(BrickColor.new("Really black"), "Neon", RootPart.CFrame * Cf(0, -1.15, 0), 0, 0, 0, 0.7, 0.7, 0.7, 0.2)
  1768. MagicBlock(BrickColor.new("Really black"), "Neon", RootPart.CFrame * Cf(0, -1.15, 0), 0, 0, 0, 0.7, 0.7, 0.7, 0.2)
  1769. MagicBlock(BrickColor.new("Really black"), "Neon", RootPart.CFrame * Cf(0, -1.15, 0), 0, 0, 0, 0.7, 0.7, 0.7, 0.2)
  1770.  
  1771. MagicBlock(BrickColor.new("Royal purple"), "Neon", RootPart.CFrame * Cf(0, -1.15, 0), 0, 0, 0, 0.7, 0.7, 0.7, 0.2)
  1772. MagicCircle(BrickColor.new("Royal purple"), "Neon", RootPart.CFrame, 0, 0, 0, 0.7, 0.7, 0.7, 0.2)
  1773. MagicCircle(BrickColor.new("Royal purple"), "Neon", RootPart.CFrame, 0, 0, 0, 0.7, 0.7, 0.7, 0.2)
  1774. MagicCircle(BrickColor.new("Royal purple"), "Neon", RootPart.CFrame, 0, 0, 0, 0.7, 0.7, 0.7, 0.2)
  1775. MagicCircle(BrickColor.new("Royal purple"), "Neon", RootPart.CFrame, 0, 0, 0, 0.7, 0.7, 0.7, 0.2)
  1776.  
  1777. MagicBlock(BrickColor.new("Royal purple"), "SmoothPlastic", RootPart.CFrame, 0, 0, 0, 0.7, 0.7, 0.7, 0.2)
  1778. MagicBlock(BrickColor.new("Royal purple"), "Neon", RootPart.CFrame, 0, 0, 0, 0.7, 0.7, 0.7, 0.02)
  1779.  
  1780. MagicSpikeBall(BrickColor.new("Royal purple"), "Neon", RootPart.CFrame, 0, 0, 0, 0.7, 0.7, 0.7, 0.2)
  1781. MagicSpikeBall(BrickColor.new("Royal purple"), "Neon", RootPart.CFrame, 0, 0, 0, 0.7, 0.7, 0.7, 0.2)
  1782.  
  1783. MagicCircle(BrickColor.new("Really black"), "Neon", RootPart.CFrame, 0, 0, 0, 0.7, 0.7, 0.7, 0.2)
  1784. MagicCircle(BrickColor.new("Really black"), "Neon", RootPart.CFrame, 0, 0, 0, 0.7, 0.7, 0.7, 0.2)
  1785. end
  1786.  
  1787. function Lightning(Part0,Part1,Times,Offset,Color,Thickness,Trans)
  1788. local magz = (Part0 - Part1).magnitude
  1789. local curpos = Part0
  1790. local trz = {-Offset,Offset}
  1791. for i=1,Times do
  1792. local li = Instance.new("Part", torso)
  1793. li.Name = "Lightning"
  1794. li.TopSurface =0
  1795. li.Material = "Neon"
  1796. li.BottomSurface = 0
  1797. li.Anchored = true
  1798. li.Locked = true
  1799. li.Transparency = Trans or 0.4
  1800. li.BrickColor = BrickColor.new(Color)
  1801. li.formFactor = "Custom"
  1802. li.CanCollide = false
  1803. li.Size = Vector3.new(Thickness,Thickness,magz/Times)
  1804. local Offzet = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)])
  1805. local trolpos = CFrame.new(curpos,Part1)*CFrame.new(0,0,magz/Times).p+Offzet
  1806. if Times == i then
  1807. local magz2 = (curpos - Part1).magnitude
  1808. li.Size = Vector3.new(Thickness,Thickness,magz2)
  1809. li.CFrame = CFrame.new(curpos,Part1)*CFrame.new(0,0,-magz2/2)
  1810. else
  1811. li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2)
  1812. end
  1813. curpos = li.CFrame*CFrame.new(0,0,magz/Times/2).p
  1814. game.Debris:AddItem(li,.1)
  1815. end
  1816. end
  1817.  
  1818. BodyParts = {} -- Parts to emit lightning effects from
  1819. for _, v in pairs(Spheres:GetChildren()) do
  1820. if v:IsA("Part") then
  1821. table.insert(BodyParts, v)
  1822. end
  1823. end
  1824.  
  1825. Bounding = {} -- Calculate the bounding boxes
  1826. for _, v in pairs(BodyParts) do
  1827. local temp = {X=nil, Y=nil, Z=nil}
  1828. temp.X = v.Size.X/2 * 10
  1829. temp.Y = v.Size.Y/2 * 10
  1830. temp.Z = v.Size.Z/2 * 10
  1831. Bounding[v.Name] = temp
  1832. --table.insert(Bounding, v.Name, temp)
  1833. end
  1834.  
  1835. while wait(math.random(1,10)/10) do -- Emit the Lightning effects randomly
  1836. local Body1 = BodyParts[math.random(#BodyParts)]
  1837. local Body2 = BodyParts[math.random(#BodyParts)]
  1838. local Pos1 = Vector3.new(
  1839. math.random(-Bounding[Body1.Name].X, Bounding[Body1.Name].X)/10,
  1840. math.random(-Bounding[Body1.Name].Y, Bounding[Body1.Name].Y)/10,
  1841. math.random(-Bounding[Body1.Name].Z, Bounding[Body1.Name].Z)/10
  1842. )
  1843. local Pos2 = Vector3.new(
  1844. math.random(-Bounding[Body2.Name].X, Bounding[Body2.Name].X)/10,
  1845. math.random(-Bounding[Body2.Name].Y, Bounding[Body2.Name].Y)/10,
  1846. math.random(-Bounding[Body2.Name].Z, Bounding[Body2.Name].Z)/10
  1847. )
  1848. local SPos1 = Body1.Position + Pos1
  1849. local SPos2 = Body2.Position + Pos2
  1850. Lightning(SPos1, SPos2, 6, 5, "Dark indigo", .03, .56)
  1851. end
  1852.  
  1853.  
  1854. if #Effects > 0 then
  1855. for e = 1, #Effects do
  1856. if Effects[e] ~= nil then
  1857. local Thing = Effects[e]
  1858. if Thing ~= nil then
  1859. local Part = Thing[1]
  1860. local Mode = Thing[2]
  1861. local Delay = Thing[3]
  1862. local IncX = Thing[4]
  1863. local IncY = Thing[5]
  1864. local IncZ = Thing[6]
  1865. if Thing[1].Transparency <= 1 then
  1866. if Thing[2] == "Block1" then
  1867. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1868. Mesh = Thing[1].Mesh
  1869. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1870. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1871. elseif Thing[2] == "Block2" then
  1872. Thing[1].CFrame = Thing[1].CFrame
  1873. Mesh = Thing[7]
  1874. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1875. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1876. elseif Thing[2] == "Cylinder" then
  1877. Mesh = Thing[1].Mesh
  1878. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1879. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1880. elseif Thing[2] == "Blood" then
  1881. Mesh = Thing[7]
  1882. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, .5, 0)
  1883. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1884. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1885. elseif Thing[2] == "Elec" then
  1886. Mesh = Thing[1].Mesh
  1887. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1888. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1889. elseif Thing[2] == "Disappear" then
  1890. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1891. elseif Thing[2] == "Shatter" then
  1892. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1893. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  1894. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1895. Thing[6] = Thing[6] + Thing[5]
  1896. end
  1897. else
  1898. Part.Parent = nil
  1899. table.remove(Effects, e)
  1900. end
  1901. end
  1902. end
  1903. end
  1904. end
Add Comment
Please, Sign In to add comment