Advertisement
Occulo

Untitled

Jun 25th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 38.33 KB | None | 0 0
  1. -------------------------
  2. --The Purest Feluxinian--
  3. -------------------------
  4. --Yet another script by--
  5. -- CKbackup --
  6. -------------------------
  7.  
  8. player = game.Players.LocalPlayer
  9. chara = player.Character
  10. debby = game:GetService("Debris")
  11. chara.Humanoid.MaxHealth = math.huge
  12. chara.Humanoid.Health = math.huge
  13. chara.Humanoid.WalkSpeed = 50
  14. chara.Humanoid.JumpPower = 100
  15.  
  16.  
  17. local sholpad = Instance.new("Part",chara)
  18. sholpad.Name = "SholPads"
  19. sholpad.Size = Vector3.new(1,.4,1)
  20. sholpad.Reflectance = 0.3
  21. sholpad.BottomSurface = 0
  22. sholpad.TopSurface = 0
  23. sholpad.BrickColor = BrickColor.new("Really red")
  24. sholpad.Position = chara.Torso.Position
  25. local padweld = Instance.new("Weld",sholpad)
  26. padweld.Part0 = chara.Torso
  27. padweld.Part1 = sholpad
  28. padweld.C0 = CFrame.new(0,0.9,0)
  29. local padmesh = Instance.new("SpecialMesh",sholpad)
  30. padmesh.MeshType = "FileMesh"
  31. padmesh.MeshId = "http://www.roblox.com/asset/?id=574448286"
  32. padmesh.Scale = Vector3.new(1,.4,1)
  33. local cape = Instance.new("Part",chara)
  34. cape.Name = "Cape"
  35. cape.CanCollide = false
  36. cape.Size = Vector3.new(2,4,.2)
  37. cape.Position = chara.Torso.Position
  38. cape.BrickColor = BrickColor.new("Institutional white")
  39. local capeweld = Instance.new("Weld",cape)
  40. capeweld.Part0 = chara.Torso
  41. capeweld.Part1 = cape
  42. capeweld.C0 = CFrame.new(0,-1.1,0.8)
  43. capeweld.C0 = capeweld.C0 * CFrame.fromEulerAnglesXYZ(math.rad(-10),0,0)
  44. local hand1 = Instance.new("Part",chara)
  45. hand1.Name = "Hand1"
  46. hand1.Size = Vector3.new(.8,.8,.8)
  47. hand1.Transparency = 1
  48. hand1.Position = chara["Left Arm"].Position
  49. local hand1weld = Instance.new("Weld",hand1)
  50. hand1weld.Part0 = chara["Left Arm"]
  51. hand1weld.Part1 = hand1
  52. hand1weld.C0 = CFrame.new(0,-1,0)
  53. local hand2 = hand1:Clone()
  54. hand2.Name = "Hand2"
  55. hand2.Parent = chara
  56. hand2.Position = chara["Right Arm"].Position
  57. local hand2weld = Instance.new("Weld",hand2)
  58. hand2weld.Part0 = chara["Right Arm"]
  59. hand2weld.Part1 = hand2
  60. hand2weld.C0 = CFrame.new(0,-1,0)
  61. local orbuu = Instance.new("Part", chara)
  62. orbuu.Size = Vector3.new(0,0,0)
  63. orbuu.Name = "DiamondPoint"
  64. orbuu.Anchored = true
  65. orbuu.CanCollide = false
  66. orbuu.Transparency = 1
  67. local orbuur = Instance.new("Part", chara)
  68. orbuur.Size = Vector3.new(1,1,1)
  69. orbuur.Name = "Diamond"
  70. orbuur.Position = chara.Head.Position
  71. orbuur.CanCollide = false
  72. orbuur.BrickColor = BrickColor.new("Institutional white")
  73. orbuur.Reflectance = 1
  74. local orbforce = Instance.new("BodyPosition",orbuur)
  75. orbforce.D = 1000
  76. local meshooo = Instance.new("SpecialMesh", orbuur)
  77. meshooo.MeshType = "FileMesh"
  78. meshooo.MeshId = "http://www.roblox.com/asset/?id=9756362"
  79. local RotationSpeed = 5
  80. local BobSpeed = 2
  81. local RotationDist = Vector3.new(10, 0, 0)
  82. local dt = 0
  83. local currentTime = 0
  84. local laserpoint = orbuu:Clone()
  85. laserpoint.Parent = chara
  86. laserpoint.Position = chara.Torso.Position
  87. laserpoint.Name = "LaserPoint"
  88. laserpoint.Anchored = false
  89. local lsptweld = Instance.new("Weld",laserpoint)
  90. lsptweld.Part0 = chara.Torso
  91. lsptweld.Part1 = laserpoint
  92. lsptweld.C0 = CFrame.new(0,6,0)
  93.  
  94. --Za Sounds--
  95. local summonsound = Instance.new("Sound", chara.Torso)
  96. summonsound.SoundId = "http://www.roblox.com/asset/?id=367850772"
  97. summonsound.Volume = 1
  98. local lassnd = Instance.new("Sound", orbuur)
  99. lassnd.SoundId = "http://www.roblox.com/asset/?id=228343271"
  100. lassnd.Volume = 1
  101. local blastsnd = Instance.new("Sound", chara.Torso)
  102. blastsnd.SoundId = "http://www.roblox.com/asset/?id=200633327"
  103. blastsnd.Volume = 1
  104. local metsnd = Instance.new("Sound", chara.Torso)
  105. metsnd.SoundId = "http://www.roblox.com/asset/?id=367850840"
  106. metsnd.Volume = 1
  107. local swdsnd = Instance.new("Sound", chara.Torso)
  108. swdsnd.SoundId = "http://www.roblox.com/asset/?id=231917758"
  109. swdsnd.Volume = 1
  110. local swd2snd = Instance.new("Sound", chara.Torso)
  111. swd2snd.SoundId = "http://www.roblox.com/asset/?id=154965962"
  112. swd2snd.Volume = 1
  113. local hitsnd = Instance.new("Sound", chara.Torso)
  114. hitsnd.SoundId = "http://www.roblox.com/asset/?id=154965973"
  115. hitsnd.Volume = 1
  116. local eckssnd = Instance.new("Sound", chara.Torso)
  117. eckssnd.SoundId = "http://www.roblox.com/asset/?id=258057783"
  118. eckssnd.Volume = 1
  119. local music1 = Instance.new("Sound", chara.Torso)
  120. music1.SoundId = "http://www.roblox.com/asset/?id=499163601"
  121. music1.Volume = 1
  122. music1.Looped = true
  123. music1:Play()
  124.  
  125. --Za Effects--
  126. color3colour = {BrickColor.new("Really red").Color,BrickColor.new("Neon orange").Color,BrickColor.new("New yeller").Color,BrickColor.new("Lime green").Color,BrickColor.new("Really blue").Color,BrickColor.new("Alder").Color}
  127. breekcolour = {BrickColor.new("Really red"),BrickColor.new("Neon orange"),BrickColor.new("New yeller"),BrickColor.new("Lime green"),BrickColor.new("Really blue"),BrickColor.new("Alder")}
  128. firecolour = {ColorSequenceKeypoint.new(0,BrickColor.new("Really red").Color),ColorSequenceKeypoint.new(.05,BrickColor.new("Neon orange").Color),ColorSequenceKeypoint.new(.1,BrickColor.new("New yeller").Color),ColorSequenceKeypoint.new(.15,BrickColor.new("Lime green").Color),ColorSequenceKeypoint.new(.2,BrickColor.new("Really blue").Color),ColorSequenceKeypoint.new(.25,BrickColor.new("Alder").Color),ColorSequenceKeypoint.new(1,BrickColor.new("Alder").Color)}
  129. barcolour = {ColorSequenceKeypoint.new(0,BrickColor.new("Really red").Color),ColorSequenceKeypoint.new(.2,BrickColor.new("Neon orange").Color),ColorSequenceKeypoint.new(.4,BrickColor.new("New yeller").Color),ColorSequenceKeypoint.new(.6,BrickColor.new("Lime green").Color),ColorSequenceKeypoint.new(.8,BrickColor.new("Really blue").Color),ColorSequenceKeypoint.new(1,BrickColor.new("Alder").Color)}
  130. normallife = {NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(1,1)}
  131. extendlife = {NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(0.8,0),NumberSequenceKeypoint.new(1,1)}
  132. function createrainbow(color,part,texture,size,trans,life,face,speed,accel,velsp,lock,name)
  133. local fira = Instance.new("ParticleEmitter",part)
  134. fira.Name = name
  135. fira.Color = ColorSequence.new(color)
  136. fira.Size = size
  137. fira.Texture = texture
  138. fira.Transparency = trans
  139. fira.Lifetime = life
  140. fira.EmissionDirection = face
  141. fira.Rate = 100000000
  142. fira.RotSpeed = NumberRange.new(100)
  143. fira.Speed = speed
  144. fira.VelocitySpread = velsp
  145. fira.Acceleration = accel
  146. fira.LightEmission = 1
  147. fira.LockedToPart = lock
  148. end
  149. handfire1 = createrainbow(firecolour,hand1,"rbxasset://textures/particles/smoke_main.dds",NumberSequence.new({NumberSequenceKeypoint.new(0,.4),NumberSequenceKeypoint.new(1,0)}),NumberSequence.new(extendlife),NumberRange.new(1),"Left",NumberRange.new(1),Vector3.new(0,2,0),0,false,"FireEffect")
  150. handfire2 = createrainbow(firecolour,hand2,"rbxasset://textures/particles/smoke_main.dds",NumberSequence.new({NumberSequenceKeypoint.new(0,.4),NumberSequenceKeypoint.new(1,0)}),NumberSequence.new(extendlife),NumberRange.new(1),"Right",NumberRange.new(1),Vector3.new(0,2,0),0,false,"FireEffect")
  151. createrainbow(barcolour,orbuur,"rbxasset://textures/particles/smoke_main.dds",NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(0.8,1),NumberSequenceKeypoint.new(1,0)}),NumberSequence.new(extendlife),NumberRange.new(1),"Front",NumberRange.new(0),Vector3.new(0,0,0),0,false,"OrbEffect")
  152. local spelleffect = Instance.new("ParticleEmitter",chara.Torso)
  153. spelleffect.Texture = "http://www.roblox.com/asset/?id=679657454"
  154. spelleffect.Speed = NumberRange.new(0)
  155. spelleffect.LightEmission = 1
  156. spelleffect.Transparency = NumberSequence.new(normallife)
  157. spelleffect.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(1,10)})
  158. spelleffect.Rate = 0.001
  159. spelleffect.Rotation = NumberRange.new(0,359)
  160. spelleffect.RotSpeed = NumberRange.new(100)
  161. spelleffect.Lifetime = NumberRange.new(1)
  162. createrainbow(barcolour,hand2,"rbxasset://textures/particles/smoke_main.dds",NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(1,0)}),NumberSequence.new(normallife),NumberRange.new(1),"Front",NumberRange.new(10),Vector3.new(0,0,0),1000,true,"PowerEffect")
  163. powereffect = hand2.PowerEffect
  164. powereffect.Enabled = false
  165.  
  166. --Za Name Tag--
  167. local naeeym = Instance.new("BillboardGui",chara)
  168. naeeym.Size = UDim2.new(0,100,0,40)
  169. naeeym.StudsOffset = Vector3.new(0,2,0)
  170. naeeym.Adornee = chara.Head
  171. local tecks = Instance.new("TextLabel",naeeym)
  172. tecks.BackgroundTransparency = 1
  173. tecks.BorderSizePixel = 0
  174. tecks.Text = "Purification."
  175. tecks.Font = "Fantasy"
  176. tecks.FontSize = "Size24"
  177. tecks.TextStrokeTransparency = 0
  178. tecks.TextColor3 = Color3.new(1,1,1)
  179. tecks.TextStrokeColor3 = BrickColor.new("Really red").Color
  180. tecks.Size = UDim2.new(1,0,0.5,0)
  181.  
  182. --Za Magic "Circle"--
  183. Void = nil
  184. VoidParts = {}
  185. Equipped = false
  186. Counter = 1
  187.  
  188. function RayCast(Position, Direction, MaxDistance, IgnoreList)
  189. return game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(Position, Direction.unit * (MaxDistance or 999.999)), IgnoreList)
  190. end
  191.  
  192. Player = player
  193. Character = chara
  194.  
  195. Humanoid = Character:FindFirstChild("Humanoid")
  196. Torso = Character:FindFirstChild("Torso")
  197. if not Player or not Humanoid or Humanoid.Health == 0 or not chara.Torso then
  198. return
  199. end
  200. Equipped = true
  201. Void = Instance.new("Model")
  202. Void.Name = "Void"
  203. Angle = 0
  204. for i = 1, 1 do
  205. local VoidPart = Instance.new("Part")
  206. VoidPart.Name = "VoidPart"
  207. VoidPart.Transparency = 1
  208. VoidPart.BrickColor = BrickColor.new("Really black")
  209. VoidPart.Material = Enum.Material.Plastic
  210. VoidPart.Shape = Enum.PartType.Block
  211. VoidPart.FormFactor = Enum.FormFactor.Custom
  212. VoidPart.TopSurface = Enum.SurfaceType.Smooth
  213. VoidPart.BottomSurface = Enum.SurfaceType.Smooth
  214. VoidPart.Anchored = true
  215. VoidPart.CanCollide = false
  216. VoidPart.Locked = true
  217. VoidPart.Size = Vector3.new(10, 0.2, 10)
  218. fiyer = createrainbow(firecolour,VoidPart,"http://www.roblox.com/asset/?id=224413104",NumberSequence.new({NumberSequenceKeypoint.new(0,.4),NumberSequenceKeypoint.new(1,0)}),NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(0.99,0),NumberSequenceKeypoint.new(1,1)}),NumberRange.new(10),"Top",NumberRange.new(2),Vector3.new(0,2,0),0,false,"FireEffect")
  219. VoidPart.FireEffect.Rate = 10
  220. local BlockMesh = Instance.new("BlockMesh")
  221. BlockMesh.Scale = Vector3.new(1.5,1,1.5)
  222. BlockMesh.Parent = VoidPart
  223. VoidPart.Parent = Void
  224. local Star = Instance.new("Decal", VoidPart)
  225. Star.Texture = "http://www.roblox.com/asset/?id=685910499"
  226. Star.Face = "Top"
  227. local Light = Instance.new("PointLight", VoidPart)
  228. Light.Color = Color3.new(1,1,1)
  229. Light.Brightness = 100
  230. Light.Range = 10
  231. table.insert(VoidParts, VoidPart)
  232. end
  233. Spawn(function()
  234. while Equipped and Humanoid.Parent and Humanoid.Health > 0 and chara do
  235. if Angle == 360 then
  236. Angle = 0
  237. end
  238. Angle = Angle + .05
  239. chara.Humanoid.MaxHealth = math.huge
  240. chara.Humanoid.Health = math.huge
  241. Counter = Counter + 1
  242. if Counter == 7 then
  243. Counter = 1
  244. end
  245. tecks.TextStrokeColor3 = color3colour[Counter]
  246. fakehead.face.Color3 = color3colour[Counter]
  247. Void.VoidPart.Decal.Color3 = color3colour[Counter]
  248. Void.VoidPart.PointLight.Color = color3colour[Counter]
  249. sholpad.BrickColor = breekcolour[Counter]
  250. local parentPos = chara.Torso.CFrame
  251. --Rotate Fluffy around the player's head
  252. local rotation = CFrame.Angles(0 , RotationSpeed * currentTime, 0)
  253. local bob = Vector3.new(0, BobSpeed * math.sin(currentTime), 0)
  254. orbuu.CFrame = ((parentPos + bob) + (rotation * RotationDist))
  255. --Wait some time so we aren't going plaid
  256. dt, currentTime = wait(1/40)
  257. if activebeam == true then
  258. orbforce.Position = laserpoint.Position
  259. else
  260. orbforce.Position = orbuu.Position
  261. end
  262. local Hit, EndPosition = RayCast(chara.Torso.Position, Vector3.new(0, -1, 0), (chara.Torso.Size.Y * 6.5), {Character})
  263. if Hit then
  264. if not Void.Parent then
  265. Void.Parent = Character
  266. end
  267. for i, v in pairs(VoidParts) do
  268. v.CFrame = CFrame.new(chara.Torso.Position.X, EndPosition.Y, chara.Torso.Position.Z) * CFrame.Angles(0, (Angle + i), 0)
  269. end
  270. else
  271. Void.Parent = nil
  272. end
  273. wait()
  274. end
  275. end)
  276.  
  277. --Za Chatting Function--
  278. function chat(string)
  279. --ch = game:GetService("Chat"):Chat(chara.Head, string, "Red")
  280. if chara:FindFirstChild("TalkingBillBoard") ~= nil then
  281. chara:FindFirstChild("TalkingBillBoard"):destroy()
  282. end
  283. local naeeym2 = Instance.new("BillboardGui",chara)
  284. naeeym2.Size = UDim2.new(0,100,0,40)
  285. naeeym2.StudsOffset = Vector3.new(0,4,0)
  286. naeeym2.Adornee = chara.Head
  287. naeeym2.Name = "TalkingBillBoard"
  288. local tecks2 = Instance.new("TextLabel",naeeym2)
  289. tecks2.BackgroundTransparency = 1
  290. tecks2.BorderSizePixel = 0
  291. tecks2.Text = string
  292. tecks2.Font = "Fantasy"
  293. tecks2.FontSize = "Size24"
  294. tecks2.TextStrokeTransparency = 0
  295. tecks2.TextColor3 = Color3.new(1,1,1)
  296. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  297. tecks2.Size = UDim2.new(1,0,0.5,0)
  298. debby:AddItem(naeeym2,1)
  299. end
  300.  
  301. --Za Tool and Values--
  302. local tool = Instance.new("Tool",player.Backpack)
  303. tool.Name = "Holy Energy"
  304. tool.RequiresHandle = false
  305. tool.CanBeDropped = false
  306. music = true
  307. activebeam = false
  308. activegrab = false
  309. didgrab = false
  310.  
  311. --Za Animations--
  312. local blasta = Instance.new("Animation", tool)
  313. blasta.AnimationId = "http://www.roblox.com/asset/?id=86504773"
  314. local blastanim = chara.Humanoid:LoadAnimation(blasta)
  315. local summona = Instance.new("Animation", tool)
  316. summona.AnimationId = "http://www.roblox.com/asset/?id=83994319"
  317. local summonanim = chara.Humanoid:LoadAnimation(summona)
  318. local spina = Instance.new("Animation", tool)
  319. spina.AnimationId = "http://www.roblox.com/asset/?id=235542946"
  320. local spinanim = chara.Humanoid:LoadAnimation(spina)
  321.  
  322. --Hurt Function--
  323. function dealdmg(dude,dmg,spread)
  324. local finaldmg = dmg + math.random(-spread,spread)
  325. dude.Humanoid.Health = dude.Humanoid.Health - finaldmg
  326. if chara:FindFirstChild("TalkingBillBoard") ~= nil then
  327. chara:FindFirstChild("TalkingBillBoard"):destroy()
  328. end
  329. local naeeym2 = Instance.new("BillboardGui",dude)
  330. naeeym2.Size = UDim2.new(0,100,0,40)
  331. naeeym2.StudsOffset = Vector3.new(0,math.random(1,5),0)
  332. naeeym2.Adornee = dude.Head
  333. naeeym2.Name = "TalkingBillBoard"
  334. local tecks2 = Instance.new("TextLabel",naeeym2)
  335. tecks2.Position = UDim2.new(0,math.random(-50,50),0,math.random(-50,50))
  336. tecks2.BackgroundTransparency = 1
  337. tecks2.BorderSizePixel = 0
  338. tecks2.Text = "-"..finaldmg
  339. tecks2.Font = "Fantasy"
  340. tecks2.FontSize = "Size12"
  341. tecks2.TextStrokeTransparency = 0
  342. tecks2.TextColor3 = Color3.new(1,1,1)
  343. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  344. tecks2.Size = UDim2.new(1,0,0.5,0)
  345. debby:AddItem(naeeym2,1)
  346. end
  347.  
  348. --Heaven's Bolts--
  349. local LIGHTNING_STRIKE_DURATION = 3
  350. local LIGHTNING_STRIKE_COOLDOWN = 0
  351. local LIGHTNING_STRIKE_HEIGHT = 500
  352. local LIGHTNING_STRIKE_LAST_TIME = 0.2
  353. local LIGHTNING_TICK_DAMAGE = 30
  354.  
  355. function WaitForChild(parent, child)
  356. while not parent:FindFirstChild(child) do parent.ChildAdded:wait() end
  357. return parent[child]
  358. end
  359.  
  360. local Tool2 = tool
  361. local Character2 = nil
  362. local Humanoid2 = nil
  363. local Mouse = nil
  364.  
  365. local KeyDownConn = nil
  366. local KeyUpConn = nil
  367.  
  368.  
  369. local enabled = false
  370. Tool2.Enabled = true
  371.  
  372. function checkLightningHit(newLightning, lightningStart, lightningEnd, EffectPart)
  373. newLightning.Transparency = 0
  374. newLightning.BrickColor = breekcolour[math.random(1,#breekcolour)]
  375. newLightning.Material = Enum.Material.Neon
  376. local newLightningSound = Instance.new("Sound", game.Workspace)
  377. newLightningSound.SoundId = "http://www.roblox.com/asset/?id=224339201"
  378. newLightningSound.Pitch = 1 + math.rad(-.1,.1)
  379. newLightningSound.Volume = 1
  380. newLightningSound.PlayOnRemove = true
  381. newLightningSound:Destroy()
  382.  
  383. local hitParts = workspace:FindPartsInRegion3(Region3.new(lightningEnd - Vector3.new(2, 0, 2), lightningStart + Vector3.new(2, 0, 2)))
  384.  
  385. --local hitPart = workspace:FindPartOnRay(lightningRay, newLightning)
  386. local hitHums = {}
  387. for _, hitPart in pairs(hitParts) do
  388. if hitPart then
  389. local char = hitPart.Parent
  390. if char and char.Parent then
  391. if not char:FindFirstChild("Humanoid") then char = char.Parent end
  392. local hum = char:FindFirstChild("Humanoid")
  393. if hum and not hitHums[hum] then
  394. if hum.Health > 0 then
  395. end
  396. hitHums[hum] = true
  397. dealdmg(char,30,5)
  398. end
  399. end
  400. end
  401. end
  402.  
  403. wait(.1)
  404. EffectPart.PowerEffect.Enabled = false
  405. newLightning.Transparency = .25
  406. newLightning.BrickColor = breekcolour[math.random(1,#breekcolour)]
  407. wait(.1)
  408. newLightning.Transparency = .5
  409. newLightning.BrickColor = breekcolour[math.random(1,#breekcolour)]
  410. newLightning.Mesh.Scale = newLightning.Mesh.Scale - Vector3.new(1,0,1)
  411. wait(.1)
  412. newLightning.Transparency = .75
  413. newLightning.BrickColor = breekcolour[math.random(1,#breekcolour)]
  414. newLightning.Mesh.Scale = newLightning.Mesh.Scale - Vector3.new(1,0,1)
  415. wait(.1)
  416. newLightning:Remove()
  417. newLightningSound:destroy()
  418. end
  419.  
  420. function MakeLightningAt(targetPoint)
  421. print("make lightning at")
  422. local lightningStart = targetPoint + Vector3.new(0, LIGHTNING_STRIKE_HEIGHT, 0)
  423. local lightningRay = Ray.new(lightningStart, Vector3.new(0, -LIGHTNING_STRIKE_HEIGHT - 50, 0))
  424. local lightningHitPart, lightningEnd = workspace:FindPartOnRay(lightningRay)
  425.  
  426. local ignoreTable = {}
  427. while (lightningHitPart and lightningHitPart.Parent and lightningHitPart.Parent:FindFirstChild("Humanoid")) or (lightningHitPart and lightningHitPart.Parent and lightningHitPart.Parent.Parent and lightningHitPart.Parent.Parent:FindFirstChild("Humanoid")) do
  428. table.insert(ignoreTable, lightningHitPart)
  429. lightningHitPart, lightningEnd = workspace:FindPartOnRayWithIgnoreList(lightningRay, ignoreTable)
  430. end
  431.  
  432. if lightningHitPart then
  433. print("actually making some lightning")
  434. local EffectPart = Instance.new("Part",game.Workspace)
  435. EffectPart.Size = Vector3.new(1,1,1)
  436. EffectPart.Anchored = true
  437. EffectPart.Transparency = 1
  438. EffectPart.Position = targetPoint
  439. debby:AddItem(EffectPart,3)
  440. createrainbow(barcolour,EffectPart,"rbxasset://textures/particles/smoke_main.dds",NumberSequence.new(5),NumberSequence.new(normallife),NumberRange.new(1),"Front",NumberRange.new(50),Vector3.new(0,0,0),1000,false,"PowerEffect")
  441. -- make the lightning from lightningStart to lightningEnd, electrocutin' lightningHitPart
  442. local newLightning = Instance.new("Part")
  443. newLightning.Size = Vector3.new(1, 1, 1)
  444. --newLightning.Size = Vector3.new(2, lightningStart.Y - lightningEnd.Y, 2)
  445. newLightning.Transparency = .8
  446. newLightning.Anchored = false
  447. newLightning.BrickColor = BrickColor.new("Really red") -- Toothpaste
  448.  
  449. local newCylinderMesh = Instance.new("BlockMesh")
  450. newCylinderMesh.Scale = Vector3.new(3, lightningStart.Y - lightningEnd.Y, 3)
  451. newCylinderMesh.Parent = newLightning
  452.  
  453. local newLightningFloatForce = Instance.new("BodyForce")
  454. newLightningFloatForce.force = Vector3.new(0, newLightning:GetMass()*196.2, 0)
  455. newLightningFloatForce.Parent = newLightning
  456.  
  457. local newBAV = Instance.new("BodyAngularVelocity")
  458. newBAV.angularvelocity = Vector3.new(0, 10, 0)
  459. newBAV.P = 1000
  460. newBAV.maxTorque = Vector3.new(0, newBAV.P, 0)
  461. newBAV.Parent = newLightning
  462.  
  463. newLightning.CanCollide = false
  464. newLightning.CFrame = CFrame.new((lightningStart + lightningEnd) / 2)
  465.  
  466. -- for _, blockFace in pairs(BLOCK_FACES) do
  467. -- local newLightningDecal = LightningDecal:Clone()
  468. -- newLightningDecal.Face = blockFace
  469. -- newLightningDecal.Parent = newLightning
  470. -- end
  471.  
  472. newLightning.Parent = workspace
  473. -- game:GetService("Debris"):AddItem(newLightning, LIGHTNING_STRIKE_LAST_TIME+.2)
  474. -- delay(LIGHTNING_STRIKE_LAST_TIME, function() checkLightningHit(newLightning, lightningRay) end)
  475. delay(LIGHTNING_STRIKE_LAST_TIME, function() checkLightningHit(newLightning, lightningStart, lightningEnd, EffectPart) end)
  476. -- for i = 0, 4 do
  477. -- delay(i*LIGHTNING_STRIKE_LAST_TIME/4, function() checkLightningHit(newLightning, lightningRay) end)
  478. -- end
  479. return true
  480. else
  481. return false
  482. end
  483. end
  484.  
  485. local lightningStrikeCoroutine = nil
  486. local lightningButtonDown = false
  487. function LightningStrike()
  488. print("lightningStrike")
  489. local startTime = tick()
  490. while tick() - startTime < LIGHTNING_STRIKE_DURATION do
  491. if Mouse and lightningButtonDown then
  492. local mouseHit = Mouse.Hit
  493. if mouseHit and MakeLightningAt(mouseHit.p) then wait(.05) end
  494. end
  495. wait()
  496. end
  497. wait(LIGHTNING_STRIKE_COOLDOWN)
  498. Tool2.Enabled = true
  499. powereffect.Enabled = false
  500. summonanim:Stop()
  501. lightningStrikeCoroutine = nil
  502. end
  503.  
  504. --Beam of Purity--
  505. Tool3 = tool
  506. Me = chara
  507. SHOOTOH = true
  508. on = true
  509. mode = true
  510. local force = Instance.new("BodyPosition")
  511. force.Parent = nil
  512. local P2 = Instance.new("Part")
  513. P2.formFactor = 0
  514. P2.Parent = nil
  515. P2.BrickColor = BrickColor.new("White")
  516. P2.Anchored = true
  517. P2.CanCollide = false
  518. P2.TopSurface = "Smooth"
  519. P2.BottomSurface = "Smooth"
  520. P2.Name = "Laser"
  521. function explodtouch(hit)
  522. if hit.Parent:FindFirstChild("Humanoid")~=nil then
  523. dealdmg(hit.Parent,5,3)
  524. end
  525. end
  526. function Click(mouse)
  527. if (SHOOTOH == true) then
  528. SHOOTOH = false
  529. local EffectPart = Instance.new("Part",game.Workspace)
  530. EffectPart.Size = Vector3.new(1,1,1)
  531. EffectPart.Anchored = true
  532. EffectPart.Transparency = 1
  533. createrainbow(barcolour,EffectPart,"rbxasset://textures/particles/smoke_main.dds",NumberSequence.new(5),NumberSequence.new(normallife),NumberRange.new(.5),"Front",NumberRange.new(50),Vector3.new(0,0,0),1000,false,"PowerEffect")
  534. lassnd:Play()
  535. for i = 1,30 do
  536. local P = Instance.new("Part")
  537. local Place0 = CFrame.new(orbuur.CFrame.x,orbuur.CFrame.y,orbuur.CFrame.z)
  538. local Place1 = Mouse.Hit.p
  539. EffectPart.Position = Place1
  540. local meshla = Instance.new("BlockMesh", P)
  541. meshla.Scale = Vector3.new(1,1,1)
  542. P.formFactor = 0
  543. P.Size = Vector3.new(1,1,(Place0.p - Place1).magnitude)
  544. P.Name = "Laser"
  545. P.CFrame = CFrame.new((Place0.p + Place1)/2,Place0.p)
  546. P.Parent = game.Workspace
  547. P.BrickColor = BrickColor.new("Institutional white")
  548. P.Material = "Neon"
  549. P.Anchored = true
  550. P.CanCollide = false
  551. P.Locked = true
  552. P.BottomSurface = "Smooth"
  553. P.TopSurface = "Smooth"
  554. local E = Instance.new("Explosion")
  555. E.Position = Place1
  556. E.Parent = game.Workspace
  557. E.BlastPressure = 0
  558. E.Visible = false
  559. E.Hit:connect(explodtouch)
  560. wait(0.01)
  561. P:remove()
  562. end
  563. ----
  564. EffectPart.PowerEffect.Enabled = false
  565. wait(1)
  566. SHOOTOH = true
  567. EffectPart:Destroy()
  568. local cheeld = script:GetChildren()
  569. tool.Enabled = true
  570. summonanim:Stop()
  571. powereffect.Enabled = false
  572. activebeam = false
  573. end
  574. end
  575.  
  576. --Holy Blast--
  577. function fire(v)
  578. local vCharacter = chara
  579. local vPlayer = game.Players:playerFromCharacter(vCharacter)
  580. local missile = Instance.new("Part",game.Workspace)
  581. local spawnPos = orbuur.Position
  582. missile.Position = spawnPos
  583. missile.Material = "Neon"
  584. missile.Size = Vector3.new(1,1,1)
  585. missile.Velocity = v * 100
  586. missile.BrickColor = BrickColor.new("Institutional white")
  587. missile.Shape = 1
  588. missile.Name = "Blast"
  589. createrainbow(firecolour,missile,"rbxasset://textures/particles/smoke_main.dds",NumberSequence.new({NumberSequenceKeypoint.new(0,.4),NumberSequenceKeypoint.new(1,0)}),NumberSequence.new(extendlife),NumberRange.new(1),"Left",NumberRange.new(0),Vector3.new(0,0,0),0,false,"FireEffect")
  590. --createrainbow(barcolour,missile,"rbxasset://textures/particles/smoke_main.dds",NumberSequence.new(1),NumberSequence.new(normallife),NumberRange.new(.5),"Front",NumberRange.new(10),Vector3.new(0,0,0),1000,false,"PowerEffect")
  591. --missile.PowerEffect.Enabled = false
  592. local mesh1 = Instance.new("SpecialMesh",missile)
  593. mesh1.MeshType = "Sphere"
  594. local force = Instance.new("BodyForce")
  595. force.force = Vector3.new(0,missile:GetMass()*196.2,0)
  596. force.Parent = missile
  597. missile.Touched:connect(function (hit)
  598. if (hit ~= orbuur and hit ~= orbuu and hit ~= laserpoint and hit.Name ~= "Blast" and missile.Anchored == false) then
  599. missile.Anchored = true
  600. missile.CanCollide = false
  601. missile.FireEffect:Destroy()
  602. --missile.PowerEffect.Enabled = true
  603. local E = Instance.new("Explosion")
  604. E.Position = missile.Position
  605. E.Parent = game.Workspace
  606. E.BlastPressure = 0
  607. E.Visible = false
  608. E.Hit:connect(explodtouch)
  609. wait(0.1)
  610. --missile.PowerEffect.Enabled = false
  611. missile.Transparency = .25
  612. missile.Mesh.Scale = Vector3.new(1.5,1.5,1.5)
  613. wait(0.1)
  614. missile.Transparency = .5
  615. missile.Mesh.Scale = Vector3.new(2,2,2)
  616. wait(0.1)
  617. missile.Transparency = .75
  618. missile.Mesh.Scale = Vector3.new(2.5,2.5,2.5)
  619. wait(0.1)
  620. missile:Destroy()
  621. end
  622. end)
  623. debby:AddItem(missile,10)
  624. end
  625.  
  626. --Gaia Shatterer--
  627. function meteorfire(v)
  628. local vCharacter = chara
  629. local vPlayer = game.Players:playerFromCharacter(vCharacter)
  630. local missile = Instance.new("Part",game.Workspace)
  631. local spawnPos = chara.Head.Position + Vector3.new(0,100,0)
  632. missile.Position = spawnPos
  633. missile.Material = "Neon"
  634. missile.Size = Vector3.new(5,5,5)
  635. missile.Velocity = v * 100
  636. missile.BrickColor = BrickColor.new("Institutional white")
  637. missile.Shape = 1
  638. missile.Name = "Blast"
  639. createrainbow(firecolour,missile,"rbxasset://textures/particles/smoke_main.dds",NumberSequence.new({NumberSequenceKeypoint.new(0,10),NumberSequenceKeypoint.new(1,0)}),NumberSequence.new(extendlife),NumberRange.new(5),"Left",NumberRange.new(0),Vector3.new(0,0,0),0,false,"FireEffect")
  640. createrainbow(firecolour,missile,"rbxasset://textures/particles/smoke_main.dds",NumberSequence.new(10),NumberSequence.new(normallife),NumberRange.new(5),"Front",NumberRange.new(30),Vector3.new(0,0,0),1000,false,"PowerEffect")
  641. missile.PowerEffect.Enabled = false
  642. local mesh1 = Instance.new("SpecialMesh",missile)
  643. mesh1.MeshType = "Sphere"
  644. mesh1.Scale = Vector3.new(2,2,2)
  645. local force = Instance.new("BodyForce")
  646. force.force = Vector3.new(0,missile:GetMass()*196.2,0)
  647. force.Parent = missile
  648. missile.Touched:connect(function (hit)
  649. if (hit ~= orbuur and hit ~= orbuu and hit ~= laserpoint and hit.Name ~= "Blast" and missile.Anchored == false) then
  650. missile.Anchored = true
  651. missile.CanCollide = false
  652. missile.FireEffect:Destroy()
  653. missile.PowerEffect.Enabled = true
  654. local exsnd = Instance.new("Sound",missile)
  655. exsnd.SoundId = "http://www.roblox.com/asset/?id=142070127"
  656. exsnd.Volume = 1
  657. exsnd.PlayOnRemove = true
  658. exsnd:Destroy()
  659. local E = Instance.new("Explosion")
  660. E.Position = missile.Position
  661. E.Parent = game.Workspace
  662. E.BlastPressure = 0
  663. E.BlastRadius = 15
  664. E.Visible = false
  665. E.Hit:connect(explodtouch2)
  666. wait(0.1)
  667. missile.Transparency = .25
  668. missile.Mesh.Scale = Vector3.new(2.5,2.5,2.5)
  669. wait(0.1)
  670. missile.Transparency = .5
  671. missile.Mesh.Scale = Vector3.new(3,3,3)
  672. wait(0.1)
  673. missile.Transparency = .75
  674. missile.Mesh.Scale = Vector3.new(3.5,3.5,3.5)
  675. wait(0.1)
  676. missile.PowerEffect.Enabled = false
  677. missile.Transparency = 1
  678. wait(6)
  679. missile:Destroy()
  680. end
  681. end)
  682. debby:AddItem(missile,10)
  683. end
  684. function meteor2fire(v)
  685. local vCharacter = chara
  686. local vPlayer = game.Players:playerFromCharacter(vCharacter)
  687. local missile = Instance.new("Part",game.Workspace)
  688. local spawnPos = chara.Head.Position + Vector3.new(0,100,0)
  689. missile.Position = spawnPos
  690. missile.Material = "Neon"
  691. missile.Size = Vector3.new(10,10,10)
  692. missile.Velocity = v * 50
  693. missile.BrickColor = BrickColor.new("Institutional white")
  694. missile.Shape = 1
  695. missile.Name = "Blast"
  696. createrainbow(firecolour,missile,"rbxasset://textures/particles/smoke_main.dds",NumberSequence.new({NumberSequenceKeypoint.new(0,15),NumberSequenceKeypoint.new(1,0)}),NumberSequence.new(extendlife),NumberRange.new(5),"Left",NumberRange.new(0),Vector3.new(0,0,0),0,false,"FireEffect")
  697. createrainbow(firecolour,missile,"rbxasset://textures/particles/smoke_main.dds",NumberSequence.new(15),NumberSequence.new(normallife),NumberRange.new(5),"Front",NumberRange.new(50),Vector3.new(0,0,0),1000,false,"PowerEffect")
  698. missile.PowerEffect.Enabled = false
  699. local mesh1 = Instance.new("SpecialMesh",missile)
  700. mesh1.MeshType = "Sphere"
  701. mesh1.Scale = Vector3.new(2,2,2)
  702. local force = Instance.new("BodyForce")
  703. force.force = Vector3.new(0,missile:GetMass()*196.2,0)
  704. force.Parent = missile
  705. missile.Touched:connect(function (hit)
  706. if (hit ~= orbuur and hit ~= orbuu and hit ~= laserpoint and hit.Name ~= "Blast" and missile.Anchored == false) then
  707. missile.Anchored = true
  708. missile.CanCollide = false
  709. missile.FireEffect:Destroy()
  710. missile.PowerEffect.Enabled = true
  711. local exsnd = Instance.new("Sound",missile)
  712. exsnd.SoundId = "http://www.roblox.com/asset/?id=142070127"
  713. exsnd.Volume = 1
  714. exsnd.Pitch = 0.5
  715. exsnd.PlayOnRemove = true
  716. exsnd:Destroy()
  717. local E = Instance.new("Explosion")
  718. E.Position = missile.Position
  719. E.Parent = game.Workspace
  720. E.BlastPressure = 0
  721. E.BlastRadius = 30
  722. E.Visible = false
  723. E.Hit:connect(explodtouch3)
  724. wait(0.1)
  725. missile.Transparency = .25
  726. missile.Mesh.Scale = Vector3.new(2.5,2.5,2.5)
  727. wait(0.1)
  728. missile.Transparency = .5
  729. missile.Mesh.Scale = Vector3.new(3,3,3)
  730. wait(0.1)
  731. missile.Transparency = .75
  732. missile.Mesh.Scale = Vector3.new(3.5,3.5,3.5)
  733. wait(0.1)
  734. missile.PowerEffect.Enabled = false
  735. missile.Transparency = 1
  736. wait(6)
  737. missile:Destroy()
  738. end
  739. end)
  740. debby:AddItem(missile,20)
  741. end
  742. function explodtouch2(hit)
  743. if hit.Parent:FindFirstChild("Humanoid")~=nil then
  744. dealdmg(hit.Parent,10,5)
  745. end
  746. end
  747. function explodtouch3(hit)
  748. if hit.Parent:FindFirstChild("Humanoid")~=nil then
  749. dealdmg(hit.Parent,20,5)
  750. end
  751. end
  752.  
  753. --Swords of Light--
  754. function swordsummon()
  755. spinanim:Play()
  756. local sword1 = Instance.new("Part",chara)
  757. sword1.Size = Vector3.new(1,10,1)
  758. sword1.BottomSurface = 0
  759. sword1.TopSurface = 1
  760. sword1.BrickColor = BrickColor.new("Institutional white")
  761. sword1.Reflectance = 1
  762. sword1.CanCollide = false
  763. sword1.Position = chara["Left Arm"].Position
  764. local swordmesh = Instance.new("SpecialMesh",sword1)
  765. swordmesh.MeshId = "http://www.roblox.com/asset/?id=181327453"
  766. swordmesh.Offset = Vector3.new(0,-1,0)
  767. swordmesh.Scale = Vector3.new(3,3,3)
  768. createrainbow(firecolour,sword1,"rbxasset://textures/particles/smoke_main.dds",NumberSequence.new({NumberSequenceKeypoint.new(0,.4),NumberSequenceKeypoint.new(1,0)}),NumberSequence.new(extendlife),NumberRange.new(1),"Left",NumberRange.new(0),Vector3.new(0,0,0),0,false,"FireEffect")
  769. local sword2 = sword1:Clone()
  770. sword2.Parent = chara
  771. sword2.Position = chara["Right Arm"].Position
  772. local sw1weld = Instance.new("Weld",sword1)
  773. sw1weld.Part0 = chara["Left Arm"]
  774. sw1weld.Part1 = sword1
  775. sw1weld.C0 = CFrame.fromEulerAnglesXYZ(math.rad(-180),0,0)
  776. sw1weld.C0 = CFrame.new(0,10,0)
  777. local sw2weld = Instance.new("Weld",sword2)
  778. sw2weld.Part0 = chara["Right Arm"]
  779. sw2weld.Part1 = sword2
  780. sw2weld.C0 = CFrame.fromEulerAnglesXYZ(math.rad(-180),0,0)
  781. sw2weld.C0 = CFrame.new(0,10,0)
  782. sword1.Touched:connect(swordTouched)
  783. sword2.Touched:connect(swordTouched)
  784. for i = 1, 20 do
  785. wait(0.5)
  786. swdsnd:Play()
  787. swd2snd:Play()
  788. end
  789. sword1.FireEffect.Enabled = false
  790. sword2.FireEffect.Enabled = false
  791. wait(1)
  792. sword1.FireEffect:Destroy()
  793. sword2.FireEffect:Destroy()
  794. wait(.5)
  795. sword1.Transparency = 0.5
  796. sword2.Transparency = 0.5
  797. wait(.1)
  798. sword1:Destroy()
  799. sword2:Destroy()
  800. spinanim:Stop()
  801. tool.Enabled = true
  802. end
  803. function swordTouched(hit)
  804. if hit.Parent:FindFirstChild("Humanoid")~=nil then
  805. dealdmg(hit.Parent,10,5)
  806. hitsnd:Play()
  807. end
  808. end
  809.  
  810. --Grab--
  811. function grabTouch(hit)
  812. if activegrab == true and didgrab == false then
  813. if hit.Parent:FindFirstChild("Humanoid")~=nil and hit.Parent ~= chara then
  814. local standstillf = nil
  815. activegrab = false
  816. didgrab = true
  817. powereffect.Enabled = false
  818. summonanim:Stop()
  819. local hitdude = hit.Parent
  820. hitdude.Humanoid.Health = 100
  821. hitdude.Humanoid.MaxHealth = 100
  822. hitdude.Humanoid.PlatformStand = true
  823. hitdude.Humanoid.WalkSpeed = 0
  824. chara.Humanoid.WalkSpeed = 0
  825. if hitdude:FindFirstChild("Torso") ~= nil then
  826. hitdude.Torso.CFrame = chara.Torso.CFrame + (chara.Torso.CFrame.lookVector*5)
  827. local standstill = Instance.new("BodyPosition", hitdude.Torso)
  828. standstill.Position = hitdude.Torso.Position
  829. standstillf = standstill
  830. end
  831. --if hitdude:FindFirstChild("Left Arm") ~= nil then
  832. --hitdude["Left Arm"]:destroy()
  833. --end
  834. --if hitdude:FindFirstChild("Right Arm") ~= nil then
  835. --hitdude["Right Arm"]:destroy()
  836. --end
  837. local spellcirclepart = Instance.new("Part",chara)
  838. spellcirclepart.Size = Vector3.new(1,1,1)
  839. spellcirclepart.Anchored = true
  840. spellcirclepart.Transparency = 1
  841. spellcirclepart.CFrame = chara.Torso.CFrame + (chara.Torso.CFrame.lookVector*5) - Vector3.new(0,2.5,0)
  842. local spreadpart = Instance.new("Part",chara)
  843. spreadpart.Size = Vector3.new(1,1,1)
  844. spreadpart.Anchored = true
  845. spreadpart.Transparency = 1
  846. spreadpart.CFrame = spellcirclepart.CFrame + Vector3.new(0,100,0)
  847. local scmesh = Instance.new("BlockMesh",spellcirclepart)
  848. scmesh.Scale = Vector3.new(1,1.1,1)
  849. local scdec = Instance.new("Decal",spellcirclepart)
  850. scdec.Texture = "http://www.roblox.com/asset/?id=685910499"
  851. scdec.Face = "Top"
  852. scdec.Transparency = 1
  853. local lite = Instance.new("PointLight",spellcirclepart)
  854. lite.Enabled = false
  855. lite.Brightness = 100
  856. chat("You are not going away...")
  857. wait(1)
  858. chara.Torso.CFrame = chara.Torso.CFrame + (chara.Torso.CFrame.lookVector*50)
  859. wait(1)
  860. summonanim:Play()
  861. summonsound:Play()
  862. activebeam = true
  863. powereffect.Texture = "http://www.roblox.com/asset/?id=454403109"
  864. powereffect.Enabled = true
  865. standstillf.Position = standstillf.Position + Vector3.new(0,10,0)
  866. scdec.Transparency = 0.9
  867. lite.Enabled = true
  868. lite.Range = 1
  869. for i = 1, 19 do
  870. wait(.05)
  871. scmesh.Scale = scmesh.Scale + Vector3.new(1,0,1)
  872. scdec.Transparency = scdec.Transparency - 0.05
  873. lite.Range = lite.Range + 1
  874. end
  875. wait(1)
  876. chat("Crucify.")
  877. wait(.5)
  878. lassnd:Play()
  879. eckssnd:Play()
  880. createrainbow(barcolour,spellcirclepart,"rbxasset://textures/particles/smoke_main.dds",NumberSequence.new({NumberSequenceKeypoint.new(0,10),NumberSequenceKeypoint.new(.9,10),NumberSequenceKeypoint.new(1,0)}),NumberSequence.new(extendlife),NumberRange.new(.75),"Top",NumberRange.new(200),Vector3.new(0,0,0),0,false,"FireEffect")
  881. createrainbow(barcolour,spreadpart,"rbxasset://textures/particles/smoke_main.dds",NumberSequence.new({NumberSequenceKeypoint.new(0,10),NumberSequenceKeypoint.new(.9,10),NumberSequenceKeypoint.new(1,0)}),NumberSequence.new(extendlife),NumberRange.new(.25),"Right",NumberRange.new(200),Vector3.new(0,0,0),0,false,"FireEffect")
  882. createrainbow(barcolour,spreadpart,"rbxasset://textures/particles/smoke_main.dds",NumberSequence.new({NumberSequenceKeypoint.new(0,10),NumberSequenceKeypoint.new(.9,10),NumberSequenceKeypoint.new(1,0)}),NumberSequence.new(extendlife),NumberRange.new(.25),"Left",NumberRange.new(200),Vector3.new(0,0,0),0,false,"FireEffect2")
  883. for i = 1, 10 do
  884. dealdmg(hitdude,666,0)
  885. end
  886. for i = 1, 9 do
  887. wait(.1)
  888. local che = hitdude:GetChildren()
  889. for i = 1, #che do
  890. if che[i].ClassName == "Part" then
  891. che[i].Transparency = che[i].Transparency + .1
  892. end
  893. end
  894. end
  895. wait(.1)
  896. local che = hitdude:GetChildren()
  897. for i = 1, #che do
  898. if che[i].ClassName == "Part" then
  899. che[i]:Destroy()
  900. end
  901. end
  902. wait(3)
  903. spellcirclepart.FireEffect.Enabled = false
  904. spreadpart.FireEffect.Enabled = false
  905. spreadpart.FireEffect2.Enabled = false
  906. for i = 1, 19 do
  907. wait(.05)
  908. scmesh.Scale = scmesh.Scale - Vector3.new(1,0,1)
  909. scdec.Transparency = scdec.Transparency + 0.05
  910. lite.Range = lite.Range - 1
  911. end
  912. wait(.05)
  913. spellcirclepart:Destroy()
  914. spreadpart:Destroy()
  915. summonanim:Stop()
  916. activebeam = false
  917. powereffect.Enabled = false
  918. tool.Enabled = true
  919. chara.Humanoid.WalkSpeed = 50
  920. didgrab = false
  921. end
  922. end
  923. end
  924. chara["Right Arm"].Touched:connect(grabTouch)
  925.  
  926. --Equip Unequip and Keys Function--
  927.  
  928. function keydowns(key)
  929. if tool.Enabled == true then
  930. if key == "z" then
  931. tool.Enabled = false
  932. chat("Swords of Light!")
  933. summonsound:Play()
  934. swordsummon()
  935. end
  936. if key == "x" then
  937. summonanim:Play()
  938. summonsound:Play()
  939. chat("Heaven's Bolts!")
  940. powereffect.Texture = "http://www.roblox.com/asset/?id=14459921"
  941. powereffect.Enabled = true
  942. tool.Enabled = false
  943. wait(2)
  944. if not lightningStrikeCoroutine then
  945. lightningStrikeCoroutine = coroutine.create(LightningStrike)
  946. coroutine.resume(lightningStrikeCoroutine)
  947. end
  948. lightningButtonDown = true
  949. end
  950. if key == "c" then
  951. summonanim:Play()
  952. summonsound:Play()
  953. activebeam = true
  954. chat("Beam of Purity!")
  955. powereffect.Texture = "rbxasset://textures/particles/sparkles_main.dds"
  956. powereffect.Enabled = true
  957. tool.Enabled = false
  958. wait(2)
  959. Click()
  960. end
  961. if key == "v" then
  962. summonanim:Play()
  963. summonsound:Play()
  964. activebeam = true
  965. chat("Holy Blast!")
  966. powereffect.Texture = "http://www.roblox.com/asset/?id=224413104"
  967. powereffect.Enabled = true
  968. tool.Enabled = false
  969. wait(2)
  970. for i = 1, 6 do
  971. wait(0.2)
  972. local saund = blastsnd:Clone()
  973. saund.Parent = orbuur
  974. saund.PlayOnRemove = true
  975. saund:Destroy()
  976. local targetPos = chara.Humanoid.TargetPoint
  977. local lookAt = (targetPos - orbuur.Position).unit
  978. fire(lookAt)
  979. end
  980. summonanim:Stop()
  981. activebeam = false
  982. powereffect.Enabled = false
  983. tool.Enabled = true
  984. end
  985. if key == "b" then
  986. summonanim:Play()
  987. summonsound:Play()
  988. chat("Gaia Shatterer!")
  989. powereffect.Texture = "http://www.roblox.com/asset/?id=26356341"
  990. powereffect.Enabled = true
  991. tool.Enabled = false
  992. wait(2)
  993. for i = 1, 5 do
  994. wait(0.5)
  995. local saund = metsnd:Clone()
  996. saund.Parent = orbuur
  997. saund.PlayOnRemove = true
  998. saund:Destroy()
  999. local targetPos = chara.Humanoid.TargetPoint
  1000. local lookAt = (targetPos - (chara.Head.Position + Vector3.new(0,100,0))).unit
  1001. meteorfire(lookAt)
  1002. end
  1003. wait(0.7)
  1004. local saund = metsnd:Clone()
  1005. saund.Parent = orbuur
  1006. saund.Pitch = 0.5
  1007. saund.PlayOnRemove = true
  1008. saund:Destroy()
  1009. local targetPos = chara.Humanoid.TargetPoint
  1010. local lookAt = (targetPos - (chara.Head.Position + Vector3.new(0,100,0))).unit
  1011. meteor2fire(lookAt)
  1012. wait(1)
  1013. summonanim:Stop()
  1014. powereffect.Enabled = false
  1015. tool.Enabled = true
  1016. end
  1017. if key == "n" then
  1018. activegrab = true
  1019. summonanim:Play()
  1020. summonsound:Play()
  1021. chat("Get over here...")
  1022. powereffect.Texture = "http://www.roblox.com/asset/?id=224413104"
  1023. powereffect.Enabled = true
  1024. tool.Enabled = false
  1025. wait(5)
  1026. if didgrab == false then
  1027. chat("Agh.")
  1028. powereffect.Enabled = false
  1029. tool.Enabled = true
  1030. summonanim:Stop()
  1031. activegrab = false
  1032. elseif didgrab == true then
  1033. end
  1034. end
  1035. if key == "m" then
  1036. if music == false then
  1037. music1:Play()
  1038. music = true
  1039. elseif music == true then
  1040. music1:Stop()
  1041. music = false
  1042. end
  1043. end
  1044. end
  1045. end
  1046.  
  1047. function onEquipped(mouse)
  1048. print("onEquipped")
  1049. Mouse = player:GetMouse()
  1050. if not Mouse then return end
  1051. if Mouse then Mouse.KeyDown:connect(keydowns) end
  1052. Character2 = chara
  1053. Humanoid2 = Character:FindFirstChild("Humanoid")
  1054. Torso2 = Character:FindFirstChild("Torso")
  1055. if Humanoid2 and Torso2 then
  1056. end
  1057. end
  1058.  
  1059. function onUnequipped()
  1060. print("onUnequipped")
  1061.  
  1062. Torso2 = nil
  1063. Humanoid2 = nil
  1064. Character2 = nil
  1065. Mouse = nil
  1066. end
  1067.  
  1068. tool.Equipped:connect(onEquipped)
  1069. tool.Unequipped:connect(onUnequipped)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement