rewr

Untitled

Sep 28th, 2016
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 63.75 KB | None | 0 0
  1. name = game.Players.LocalPlayer.Name
  2. char = game.Workspace:FindFirstChild(name)
  3. plr = game.Players:FindFirstChild(name)
  4. mouse = plr:GetMouse()
  5. spell = Instance.new('StringValue',char)
  6.  
  7. local tool = Instance.new('HopperBin',plr.Backpack)
  8. tool.Name = 'Wand'
  9.  
  10. local wand = Instance.new('Part')
  11. local weld = Instance.new('Weld',wand)
  12. game:GetService('RunService').Stepped:connect(function()
  13. wand.CFrame = char['Left Arm'].CFrame * CFrame.new(0,-1,-.5)
  14. end)
  15. wand.FormFactor = 'Custom'
  16. wand.Size = Vector3.new(0,.1,2)
  17. wand.BrickColor = BrickColor.new(192)
  18. wand.Material = 'Wood'
  19. wand.CanCollide = false
  20. wand.Anchored = true
  21. wand.Name = 'Wand'
  22.  
  23. plr.Chatted:connect(function(message)
  24. spell.Value = message
  25. if message:sub(1,2) == '/e' then
  26. spell.Value = string.sub(message,4)
  27. end
  28. end)
  29.  
  30. tool.Selected:connect(function()
  31. wand.Parent = char
  32. end)
  33.  
  34. tool.Deselected:connect(function()
  35. wand:remove()
  36. end)
  37.  
  38. function KeyPress(key)
  39. if char:FindFirstChild('Wand') ~= nil then
  40. if spell.Value == 'reducto' and key == 'q' then
  41. local beamcf = char.Head.CFrame.p
  42. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  43. local part = workspace:FindPartOnRay(ray)
  44. if part then
  45. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  46. local fire = Instance.new('Fire',part)
  47. fire.Heat = 60
  48. fire.Size = 60
  49. part.Material = 'CorrodedMetal'
  50. part:BreakJoints()
  51. part.Anchored = false
  52. part.CanCollide = true
  53. end
  54. end
  55. end
  56.  
  57. if spell.Value == 'accio' and key == 'q' then
  58. local beamcf = char.Head.CFrame.p
  59. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  60. local part = workspace:FindPartOnRay(ray)
  61. if part then
  62. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  63. local drag = Instance.new('BodyPosition',part)
  64. drag.P = 900
  65. drag.MaxForce = Vector3.new(2e9,2e9,2e9)
  66. game:GetService('RunService').Stepped:connect(function()
  67. drag.Position = char.Torso.Position
  68. end)
  69. function stopdrag(hit)
  70. if hit.Parent.Name == name then
  71. drag:remove()
  72. end
  73. end
  74. part.Touched:connect(stopdrag)
  75. end
  76. end
  77. end
  78.  
  79. if spell.Value == 'age line' and key == 'q' then
  80. local beamcf = char.Head.CFrame.p
  81. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  82. local part = workspace:FindPartOnRay(ray)
  83. if part then
  84. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  85. local ageline = Instance.new('Part',part)
  86. game:GetService('RunService').Stepped:connect(function()
  87. ageline.CFrame = part.CFrame
  88. end)
  89. part.Anchored = true
  90. ageline.Shape = 'Ball'
  91. ageline.BrickColor = BrickColor.new(24)
  92. ageline.Anchored = true
  93. ageline.Transparency = 0.5
  94. ageline.Size = part.Size + Vector3.new(10,10,10)
  95. ageline.Material = 'SmoothPlastic'
  96. end
  97. end
  98. end
  99.  
  100.  
  101. if spell.Value == 'aguamenti' and key == 'q' then
  102. local beamcf = char.Head.CFrame.p
  103. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  104. local part = workspace:FindPartOnRay(ray)
  105. if part then
  106. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  107. if part:FindFirstChild('Fire') ~= nil then
  108. part.Material = 'SmoothPlastic'
  109. part.Fire:remove()
  110. end
  111. local water = Instance.new('Part',workspace)
  112. water.Material = 'SmoothPlastic'
  113. water.BrickColor = BrickColor.new(1024)
  114. water.Anchored = true
  115. water.FormFactor = 'Custom'
  116. water.Size = Vector3.new(.1,.1,.1)
  117. water.Shape = 'Ball'
  118. water.CanCollide = false
  119. water.CFrame = mouse.hit
  120. repeat
  121. local cf = water.CFrame
  122. wait()
  123. water.Size = water.Size + Vector3.new(.1,.1,.1)
  124. water.CFrame = cf
  125. until water.Size.Y > 4
  126. end
  127. end
  128. end
  129.  
  130. if spell.Value == 'alerte ascendare' and key == 'q' then
  131. local beamcf = char.Head.CFrame.p
  132. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  133. local part = workspace:FindPartOnRay(ray)
  134. if part then
  135. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  136. part.CFrame = part.CFrame * CFrame.new(0,100,0)
  137. end
  138. end
  139. end
  140.  
  141. if spell.Value == 'alohomora' and key == 'q' then
  142. local beamcf = char.Head.CFrame.p
  143. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  144. local part = workspace:FindPartOnRay(ray)
  145. if part then
  146. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  147. part.CanCollide = false
  148. part.Transparency = 0.5
  149. end
  150. end
  151. end
  152.  
  153. if spell.Value == 'colloportus' and key == 'q' then
  154. local beamcf = char.Head.CFrame.p
  155. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  156. local part = workspace:FindPartOnRay(ray)
  157. if part then
  158. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  159. part.CanCollide = true
  160. part.Transparency = 0
  161. end
  162. end
  163. end
  164.  
  165. if spell.Value == 'anapneo' and key == 'q' then
  166. local beamcf = char.Head.CFrame.p
  167. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  168. local part = workspace:FindPartOnRay(ray)
  169. if part then
  170. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  171. if part.Parent:FindFirstChild('Humanoid') ~= nil then
  172. part.Parent.Humanoid.PlatformStand = false
  173. end
  174. end
  175. end
  176. end
  177.  
  178. if spell.Value == 'anteoculatia' and key == 'q' then
  179. local beamcf = char.Head.CFrame.p
  180. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  181. local part = workspace:FindPartOnRay(ray)
  182. if part then
  183. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  184. if part.Parent:FindFirstChild('Humanoid') ~= nil then
  185.  
  186. local hatt2 = part.Parent:GetChildren()
  187. for i= 1, #hatt2 do
  188. if hatt2[i].ClassName == 'Hat' then
  189. hatt2[i]:remove()
  190. end
  191. end
  192.  
  193. local assetId = 1272714
  194. local hat = game:GetService("InsertService"):LoadAsset(assetId)
  195. hat.Parent = part.Parent
  196.  
  197. local hatt = hat:GetChildren()
  198. for i= 1, #hatt do
  199. if hatt[i].ClassName == 'Hat' then
  200. hatt[i].Handle.CFrame = part.Parent.Head.CFrame
  201. end
  202. end
  203.  
  204. end
  205. end
  206. end
  207. end
  208.  
  209. if spell.Value == 'aparecium' and key == 'q' then
  210. local beamcf = char.Head.CFrame.p
  211. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  212. local part = workspace:FindPartOnRay(ray)
  213. if part then
  214. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  215. part.Transparency = 0
  216. end
  217. end
  218. end
  219.  
  220. if spell.Value == 'aqua eructo' and key == 'q' then
  221. local beamcf = char.Head.CFrame.p
  222. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  223. local part = workspace:FindPartOnRay(ray)
  224. if part then
  225. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  226. if part.BrickColor == BrickColor.new(1024) then
  227. game:GetService('RunService').Stepped:connect(function()
  228. part.CFrame = mouse.hit
  229. end)
  230. end
  231. end
  232. end
  233. end
  234.  
  235. if spell.Value == 'arania exumai' and key == 'q' then
  236. local beamcf = char.Head.CFrame.p
  237. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  238. local part = workspace:FindPartOnRay(ray)
  239. if part then
  240. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  241.  
  242. local mark = Instance.new('Part')
  243. mark.Parent = workspace
  244. mark.Transparency = 1
  245. mark.Anchored = true
  246.  
  247. repeat
  248. local spider = Instance.new('Part')
  249. spider.Size = Vector3.new(1,1,1)
  250. local mesh = Instance.new('SpecialMesh')
  251. mesh.MeshType = Enum.MeshType.FileMesh
  252. mesh.MeshId = 'http://www.roblox.com/asset/?id=297604254'
  253. mesh.Scale = Vector3.new(1,1,1)
  254. mesh.TextureId = 'http://www.roblox.com/asset/?id=297604312'
  255.  
  256. function spiderattack(hit)
  257. if hit.Parent:FindFirstChild('Humanoid') ~= nil then
  258. local grab = Instance.new('BodyPosition',spider)
  259. grab.P = 900
  260. grab.D = 100
  261. game:GetService('RunService').Stepped:connect(function()
  262. grab.Position = part.Position
  263. end)
  264. end
  265. end
  266. spider.Touched:connect(spiderattack)
  267.  
  268. wait()
  269. spider.Parent = workspace
  270. mesh.Parent = spider
  271. spider:BreakJoints()
  272. spider.CFrame = part.CFrame * CFrame.new(math.random(1,5),0,math.random(1,5))
  273. mark.Transparency = mark.Transparency + 0.05
  274. until mark.Transparency > 2
  275. end
  276. end
  277. end
  278.  
  279.  
  280. if spell.Value == 'arresto momentum' and key == 'q' then
  281. local beamcf = char.Head.CFrame.p
  282. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  283. local part = workspace:FindPartOnRay(ray)
  284. if part then
  285. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  286. game:GetService('RunService').Stepped:connect(function()
  287. part.Velocity = Vector3.new(0,0,0)
  288. end)
  289. end
  290. end
  291. end
  292.  
  293. if spell.Value == 'ascendio' and key == 'q' then
  294. local beamcf = char.Head.CFrame.p
  295. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  296. local part = workspace:FindPartOnRay(ray)
  297. char.Humanoid.JumpPower = char.Humanoid.JumpPower + 50
  298. end
  299.  
  300.  
  301. if spell.Value == 'avada kedavra' and key == 'q' then
  302. local beamcf = char.Head.CFrame.p
  303. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  304. local part = workspace:FindPartOnRay(ray)
  305. if part then
  306. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  307. if part.Parent:FindFirstChild('Torso') ~= nil then
  308. part.Parent.Torso:BreakJoints()
  309.  
  310. local ray2 = Ray.new(char.Wand.CFrame.p, (mouse.hit.p - char.Wand.CFrame.p).unit * 2048)
  311. local target = workspace:FindPartOnRay(ray2)
  312. local part2, position = workspace:FindPartOnRay(ray2, plr, false, true)
  313.  
  314. local beam = Instance.new("Part", workspace)
  315. beam.BrickColor = BrickColor.new(1020)
  316. beam.FormFactor = "Custom"
  317. beam.Anchored = true
  318. beam.Transparency = 0
  319. beam.Locked = true
  320. beam.CanCollide = false
  321. beam.Material = 'SmoothPlastic'
  322. beam.Name = '1011beam'
  323. beam.Parent = script
  324.  
  325. local distance = (char.Wand.CFrame.p - position).magnitude
  326. beam.Size = Vector3.new(0.3, 0.3, distance)
  327. beam.CFrame = CFrame.new(char.Wand.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  328.  
  329. wait()
  330. beam:remove()
  331.  
  332. end
  333. end
  334. end
  335. end
  336.  
  337. if spell.Value == 'avifors' and key == 'q' then
  338. local beamcf = char.Head.CFrame.p
  339. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  340. local part = workspace:FindPartOnRay(ray)
  341. if part then
  342. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  343. local mesh = Instance.new('SpecialMesh',part)
  344. mesh.MeshType = Enum.MeshType.FileMesh
  345. mesh.Scale = Vector3.new(2,2,2)
  346. mesh.MeshId = 'http://www.roblox.com/asset/?id=25211332'
  347. mesh.TextureId = 'http://www.roblox.com/asset/?id=49156571'
  348. end
  349. end
  350. end
  351.  
  352. if spell.Value == 'avis' and key == 'q' then
  353. local beamcf = char.Head.CFrame.p
  354. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  355. local part = workspace:FindPartOnRay(ray)
  356. if part then
  357. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  358. if part.Parent:FindFirstChild('Humanoid') ~= nil then
  359.  
  360. local mark = Instance.new('Part')
  361. mark.Parent = workspace
  362. mark.Transparency = 1
  363. mark.Anchored = true
  364.  
  365. repeat
  366. local crow = Instance.new('Part')
  367. crow.BrickColor = BrickColor.new(1003)
  368. crow.Size = Vector3.new(1,1,1)
  369. crow.Name = 'crow'
  370. local mesh = Instance.new('SpecialMesh')
  371. mesh.MeshType = Enum.MeshType.FileMesh
  372. mesh.Scale = Vector3.new(1,1,1)
  373. mesh.MeshId = 'http://www.roblox.com/asset/?id=25211332'
  374. local fly = Instance.new('BodyPosition')
  375. game:GetService('RunService').Stepped:connect(function()
  376. fly.Position = part.Position
  377. end)
  378. function peck(hit)
  379. if hit.Parent:FindFirstChild('Humanoid') ~= nil and hit.Parent.Name ~= name then
  380. crow.CanCollide = false
  381. hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health - 5
  382. end
  383. end
  384. crow.Touched:connect(peck)
  385. wait()
  386. crow.Parent = workspace
  387. mesh.Parent = crow
  388. fly.Parent = crow
  389. crow:BreakJoints()
  390. crow.CFrame = wand.CFrame * CFrame.new(math.random(0,1),math.random(0,1),math.random(0,1))
  391. mark.Transparency = mark.Transparency + 0.05
  392. until mark.Transparency > 5
  393.  
  394. wait(2)
  395.  
  396. removecrows = workspace:GetChildren()
  397. for i= 1, #removecrows do
  398. if removecrows[i].Name == 'crow' then
  399. removecrows[i]:remove()
  400. end
  401. end
  402.  
  403. end
  404. end
  405. end
  406. end
  407.  
  408. if spell.Value == 'bombarda' and key == 'q' then
  409. local beamcf = char.Head.CFrame.p
  410. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  411. local part = workspace:FindPartOnRay(ray)
  412. if part then
  413. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  414. local explosion = Instance.new('Explosion',part)
  415. explosion.Position = part.Position
  416. end
  417. end
  418. end
  419.  
  420. if spell.Value == 'bombarda maxima' and key == 'q' then
  421. local beamcf = char.Head.CFrame.p
  422. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  423. local part = workspace:FindPartOnRay(ray)
  424. if part then
  425. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  426. local explosion = Instance.new('Explosion',part)
  427. explosion.Position = part.Position
  428. explosion.Radius = 30
  429. explosion.BlastPressure = 100
  430. end
  431. end
  432. end
  433.  
  434. if spell.Value == 'brackium emendo' and key == 'q' then
  435. local beamcf = char.Head.CFrame.p
  436. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  437. local part = workspace:FindPartOnRay(ray)
  438. if part then
  439. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  440. if part.Parent:FindFirstChild('Humanoid') ~= nil then
  441. part.Parent.Humanoid.Health = part.Parent.Humanoid.Health + 10
  442. end
  443. end
  444. end
  445. end
  446.  
  447. if spell.Value == 'calvario' and key == 'q' then
  448. local beamcf = char.Head.CFrame.p
  449. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  450. local part = workspace:FindPartOnRay(ray)
  451. if part then
  452. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  453.  
  454. local bald = part.Parent:GetChildren()
  455. for i= 1, #bald do
  456. if bald[i].ClassName == 'Hat' then
  457. bald[i]:remove()
  458. end
  459. end
  460.  
  461. end
  462. end
  463. end
  464.  
  465. if spell.Value == 'cantis' and key == 'q' then
  466. local beamcf = char.Head.CFrame.p
  467. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  468. local part = workspace:FindPartOnRay(ray)
  469. if part then
  470. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  471. if part.Parent:FindFirstChild('Head') ~= nil then
  472. game:GetService('Chat'):Chat(part.Parent.Head,'MY LITTLE PONY MY LITTLE PONY MYY MY LITTLE PONY',Enum.ChatColor.Red)
  473. end
  474. end
  475. end
  476. end
  477.  
  478. if spell.Value == 'carpe retractum' and key == 'q' then
  479. local beamcf = char.Head.CFrame.p
  480. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  481. local part = workspace:FindPartOnRay(ray)
  482. if part then
  483. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  484.  
  485. pulled = true
  486.  
  487. local pull = Instance.new('BodyPosition',char.Torso)
  488. pull.P = 900
  489. pull.D = 1000
  490. pull.MaxForce = Vector3.new(2e9,2e9,2e9)
  491. pull.Position = mouse.hit.p
  492.  
  493. function stopulling(hit)
  494. if hit.Parent.Name ~= name and hit.Name ~= 'beamdd' and workspace:FindFirstChild('beamdd') ~= nil then
  495. pulled = false
  496. pull:remove()
  497. workspace.beamdd:remove()
  498. end
  499. end
  500. char.Torso.Touched:connect(stopulling)
  501.  
  502. local ray2 = Ray.new(char.Wand.CFrame.p, (mouse.hit.p - char.Wand.CFrame.p).unit * 2048)
  503. local target = workspace:FindPartOnRay(ray2)
  504. local part2, position = workspace:FindPartOnRay(ray2, plr, false, true)
  505.  
  506. local beam = Instance.new("Part", workspace)
  507. beam.BrickColor = BrickColor.new(1005)
  508. beam.FormFactor = "Custom"
  509. beam.Anchored = true
  510. beam.Transparency = 0
  511. beam.Locked = true
  512. beam.Name = 'beamdd'
  513. beam.CanCollide = false
  514. beam.Material = 'SmoothPlastic'
  515.  
  516. game:GetService('RunService').Stepped:connect(function()
  517. if char:FindFirstChild('Wand') ~= nil then
  518. local distance = (char.Wand.CFrame.p - position).magnitude
  519. beam.Size = Vector3.new(0.3, 0.3, distance)
  520. beam.CFrame = CFrame.new(char.Wand.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  521. end
  522. end)
  523.  
  524. end
  525. end
  526. end
  527.  
  528. if spell.Value == 'cistem aperio' and key == 'q' then
  529. local beamcf = char.Head.CFrame.p
  530. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  531. local part = workspace:FindPartOnRay(ray)
  532. if part then
  533. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  534. part:BreakJoints()
  535. part.Anchored = false
  536. end
  537. end
  538. end
  539.  
  540. if spell.Value == 'colloshoo' and key == 'q' then
  541. local beamcf = char.Head.CFrame.p
  542. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  543. local part = workspace:FindPartOnRay(ray)
  544. if part then
  545. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  546. if part.Parent:FindFirstChild('Head') ~= nil then
  547. part.Parent['Left Leg'].Anchored = true
  548. part.Parent['Right Leg'].Anchored = true
  549. end
  550. end
  551. end
  552. end
  553.  
  554. if spell.Value == 'colovaria' and key == 'q' then
  555. local beamcf = char.Head.CFrame.p
  556. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  557. local part = workspace:FindPartOnRay(ray)
  558. if part then
  559. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  560. part.BrickColor = BrickColor.new(Color3.new(math.random(),math.random(),math.random()))
  561. end
  562. end
  563. end
  564.  
  565. if spell.Value == 'confringo' and key == 'q' then
  566. local beamcf = char.Head.CFrame.p
  567. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  568. local part = workspace:FindPartOnRay(ray)
  569. local fireblast = Instance.new('Part')
  570. fireblast.Parent = workspace
  571. fireblast.Transparency = .5
  572. fireblast.BrickColor = BrickColor.new(332)
  573. fireblast:BreakJoints()
  574. fireblast.Material = 'SmoothPlastic'
  575. fireblast.CFrame = wand.CFrame
  576. fireblast.CanCollide = false
  577. fireblast.Size = Vector3.new(1,1,1)
  578. local move = Instance.new('BodyPosition',fireblast)
  579. move.Position = mouse.hit.p
  580. local fire = Instance.new('Fire',fireblast)
  581. fire.Heat = 100
  582. fire.Size = 5
  583. function confringo(hit)
  584. fireblast:BreakJoints()
  585. if hit.Name ~= 'Wand' and hit.Parent.Name ~= name then
  586. fireblast:remove()
  587. local explode = Instance.new('Explosion',workspace)
  588. explode.Position = fireblast.Position
  589. end
  590. end
  591. fireblast.Touched:connect(confringo)
  592. end
  593.  
  594. if spell.Value == 'confundo' and key == 'q' then
  595. local beamcf = char.Head.CFrame.p
  596. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  597. local part = workspace:FindPartOnRay(ray)
  598. if part then
  599. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  600. if part.Parent:FindFirstChild('Humanoid') ~= nil then
  601. part.Parent.Humanoid.WalkSpeed = 5
  602. end
  603. end
  604. end
  605. end
  606.  
  607. if spell.Value == 'crucio' and key == 'q' then
  608. local beamcf = char.Head.CFrame.p
  609. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  610. local part = workspace:FindPartOnRay(ray)
  611. if part then
  612. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  613. if part.Parent:FindFirstChild('Humanoid') ~= nil then
  614. part.Parent.Humanoid.Health = part.Parent.Humanoid.Health - 99
  615. end
  616. end
  617. end
  618. end
  619.  
  620. if spell.Value == 'defodio' and key == 'q' then
  621. local beamcf = char.Head.CFrame.p
  622. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  623. local part = workspace:FindPartOnRay(ray)
  624. if part then
  625. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  626. if part.Parent:FindFirstChild('Humanoid') ~= nil then
  627. part.Parent.Humanoid.Health = part.Parent.Humanoid.Health - 50
  628. part.Parent.Humanoid.Sit = true
  629. local gut = Instance.new('Part')
  630. gut.Parent = workspace
  631. gut.BrickColor = BrickColor.new(332)
  632. gut:BreakJoints()
  633. gut.Material = 'SmoothPlastic'
  634. gut.CFrame = part.CFrame
  635. gut.Size = Vector3.new(2,2,2)
  636. end
  637. end
  638. end
  639. end
  640.  
  641. if spell.Value == 'deletrius' and key == 'q' then
  642. local beamcf = char.Head.CFrame.p
  643. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  644. local part = workspace:FindPartOnRay(ray)
  645. if part then
  646. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  647. part:remove()
  648. end
  649. end
  650. end
  651.  
  652. if spell.Value == 'depulso' and key == 'q' then
  653. local beamcf = char.Head.CFrame.p
  654. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  655. local part = workspace:FindPartOnRay(ray)
  656. if part then
  657. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  658. local vel = Instance.new('BodyVelocity',part)
  659. vel.Velocity = char.Torso.CFrame.lookVector * 900
  660. end
  661. end
  662. end
  663.  
  664. if spell.Value == 'descendo' and key == 'q' then
  665. local beamcf = char.Head.CFrame.p
  666. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  667. local part = workspace:FindPartOnRay(ray)
  668. if part then
  669. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  670. local vel = Instance.new('BodyForce',part)
  671. vel.Force = Vector3.new(0,-1000,0)
  672. end
  673. end
  674. end
  675.  
  676. if spell.Value == 'deprimo' and key == 'q' then
  677. local beamcf = char.Head.CFrame.p
  678. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  679. local part = workspace:FindPartOnRay(ray)
  680. if part then
  681. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  682. local vel = Instance.new('BodyForce',part)
  683. vel.Force = Vector3.new(0,-10000,0)
  684. end
  685. end
  686. end
  687.  
  688. if spell.Value == 'diffindo' and key == 'q' then
  689. local beamcf = char.Head.CFrame.p
  690. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  691. local part = workspace:FindPartOnRay(ray)
  692. if part then
  693. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  694. if part.Parent:FindFirstChild('Humanoid') ~= nil then
  695. part.Parent.Humanoid.Health = part.Parent.Humanoid.Health - 10
  696. end
  697. end
  698. end
  699. end
  700.  
  701. if spell.Value == 'diminuendo' and key == 'q' then
  702. local beamcf = char.Head.CFrame.p
  703. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  704. local part = workspace:FindPartOnRay(ray)
  705. if part then
  706. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  707. part.Size = Vector3.new(1,1,1)
  708. end
  709. end
  710. end
  711.  
  712. if spell.Value == 'ducklifors' and key == 'q' then
  713. local beamcf = char.Head.CFrame.p
  714. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  715. local part = workspace:FindPartOnRay(ray)
  716. if part then
  717. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  718. part:BreakJoints()
  719. local mesh = Instance.new('SpecialMesh',part)
  720. mesh.MeshType = Enum.MeshType.FileMesh
  721. mesh.MeshId = 'http://www.roblox.com/asset/?id=9419831'
  722. mesh.TextureId = 'http://www.roblox.com/asset/?id=65133770'
  723. end
  724. end
  725. end
  726.  
  727. if spell.Value == 'ebublio' and key == 'q' then
  728. local beamcf = char.Head.CFrame.p
  729. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  730. local part = workspace:FindPartOnRay(ray)
  731. if part then
  732. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  733.  
  734. part:BreakJoints()
  735.  
  736. local mark = Instance.new('Part')
  737. mark.Parent = workspace
  738. mark.Transparency = 1
  739. mark.Anchored = true
  740.  
  741. part:remove()
  742.  
  743. repeat
  744. local crow = Instance.new('Part')
  745. crow.FormFactor = 'Custom'
  746. crow.BrickColor = BrickColor.new(336)
  747. crow.Size = Vector3.new(1,1,1)
  748. crow.Parent = workspace
  749. crow.Material = 'SmoothPlastic'
  750.  
  751. local force = Instance.new('BodyForce')
  752. force.Force = Vector3.new(0,196.2,0)
  753. wait()
  754. crow.Parent = workspace
  755. force.Parent = crow
  756. crow:BreakJoints()
  757. crow.CFrame = part.CFrame * CFrame.new(math.random(1,5),math.random(1,5),math.random(1,5))
  758. mark.Transparency = mark.Transparency + 0.05
  759. until mark.Transparency > 5
  760.  
  761. end
  762. end
  763. end
  764.  
  765. if spell.Value == 'engorgio' and key == 'q' then
  766. local beamcf = char.Head.CFrame.p
  767. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  768. local part = workspace:FindPartOnRay(ray)
  769. if part then
  770. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  771. part.Size = Vector3.new(30,30,30)
  772. end
  773. end
  774. end
  775.  
  776. if spell.Value == 'engorgio skullus' and key == 'q' then
  777. local beamcf = char.Head.CFrame.p
  778. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  779. local part = workspace:FindPartOnRay(ray)
  780. if part then
  781. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  782. if part.Parent:FindFirstChild('Humanoid') ~= nil then
  783. part.Parent.Head.Mesh.Scale = Vector3.new(2,2,2)
  784. end
  785. end
  786. end
  787. end
  788.  
  789. if spell.Value == 'entomorphis' and key == 'q' then
  790. local beamcf = char.Head.CFrame.p
  791. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  792. local part = workspace:FindPartOnRay(ray)
  793. if part then
  794. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  795.  
  796. part:BreakJoints()
  797. local mesh = Instance.new('SpecialMesh',part)
  798. mesh.MeshType = Enum.MeshType.FileMesh
  799. mesh.MeshId = 'http://www.roblox.com/asset/?id=297604254'
  800. mesh.TextureId = 'http://www.roblox.com/asset/?id=297604312'
  801. mesh.Scale = Vector3.new(1,1,1)
  802.  
  803. end
  804. end
  805. end
  806.  
  807. if spell.Value == 'episkey' and key == 'q' then
  808. local beamcf = char.Head.CFrame.p
  809. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  810. local part = workspace:FindPartOnRay(ray)
  811. if part then
  812. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  813. if part.Parent:FindFirstChild('Humanoid') ~= nil then
  814. part.Parent.Humanoid.Health = part.Parent.Humanoid.Health + 20
  815. end
  816. end
  817. end
  818. end
  819.  
  820. if spell.Value == 'epoximise' and key == 'q' then
  821. local beamcf = char.Head.CFrame.p
  822. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  823. local part = workspace:FindPartOnRay(ray)
  824. if part then
  825. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  826. local part2 = Instance.new('Part',workspace)
  827. part2.Position = part.Position
  828. local weld2 = Instance.new('Weld',part2)
  829. weld2.Part1 = part
  830. weld2.Part0 = part2
  831. end
  832. end
  833. end
  834.  
  835. if spell.Value == 'evanesce' and key == 'q' then
  836. local beamcf = char.Head.CFrame.p
  837. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  838. local part = workspace:FindPartOnRay(ray)
  839. if part then
  840. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  841. part.Transparency = 1
  842. end
  843. end
  844. end
  845.  
  846. if spell.Value == 'evanesco' and key == 'q' then
  847. local beamcf = char.Head.CFrame.p
  848. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  849. local part = workspace:FindPartOnRay(ray)
  850. if part then
  851. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  852. part.Transparency = 1
  853. end
  854. end
  855. end
  856.  
  857. if spell.Value == 'everte statum' and key == 'q' then
  858. local beamcf = char.Head.CFrame.p
  859. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  860. local part = workspace:FindPartOnRay(ray)
  861. if part then
  862. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  863. local vel = Instance.new('BodyVelocity',part)
  864. vel.Velocity = char.Torso.CFrame.lookVector * 900
  865. wait(1)
  866. vel:remove()
  867. end
  868. end
  869. end
  870.  
  871. if spell.Value == 'expecto patronum' and key == 'q' then
  872. local beamcf = char.Head.CFrame.p
  873. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  874. local part = workspace:FindPartOnRay(ray)
  875. if part then
  876. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  877. local patronum = Instance.new('Part')
  878. patronum.Material = 'Neon'
  879. patronum.BrickColor = BrickColor.new(1)
  880. patronum.Shape = 'Ball'
  881. patronum.CFrame = char.Wand.CFrame
  882. patronum.Anchored = true
  883. patronum.Parent = workspace
  884. patronum.Size = Vector3.new(1,1,1)
  885. patronum.CanCollide = false
  886. function patronumhit(hit)
  887. if hit.BrickColor == BrickColor.new(1003) then
  888. hit:remove()
  889. end
  890. end
  891. patronum.Touched:connect(patronumhit)
  892. repeat
  893. local cf = char.Wand.CFrame
  894. wait()
  895. patronum.Size = patronum.Size + Vector3.new(5,5,5)
  896. patronum.Transparency = patronum.Transparency + 0.05
  897. patronum.CFrame = cf
  898. until patronum.Transparency > 1
  899. patronum:remove()
  900. end
  901. end
  902. end
  903.  
  904. if spell.Value == 'expelliarmus' and key == 'q' then
  905. local beamcf = char.Head.CFrame.p
  906. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  907. local part = workspace:FindPartOnRay(ray)
  908. if part then
  909. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  910. if part.Parent:FindFirstChild('Humanoid') ~= nil then
  911. expell = part.Parent:GetChildren()
  912. for i= 1, #expell do
  913. if expell[i].ClassName == 'Tool' then
  914. expell[i].Parent = plr.Backpack
  915. end
  916. end
  917. end
  918. end
  919. end
  920. end
  921.  
  922. if spell.Value == 'expulso' and key == 'q' then
  923. local beamcf = char.Head.CFrame.p
  924. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  925. local part = workspace:FindPartOnRay(ray)
  926. if part then
  927. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  928. local explosion = Instance.new('Explosion',part)
  929. explosion.Position = part.Position
  930. end
  931. end
  932. end
  933.  
  934. if spell.Value == 'ferula' and key == 'q' then
  935. local beamcf = char.Head.CFrame.p
  936. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  937. local part = workspace:FindPartOnRay(ray)
  938. if part then
  939. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  940. if part.Parent:FindFirstChild('Humanoid') ~= nil then
  941. part.Parent.Humanoid.Health = part.Parent.Humanoid.Health + 50
  942. end
  943. end
  944. end
  945. end
  946.  
  947. if spell.Value == 'fianto duri' and key == 'q' then
  948. local beamcf = char.Head.CFrame.p
  949. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  950. local part = workspace:FindPartOnRay(ray)
  951. if part then
  952. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  953. char.Humanoid.MaxHealth = math.huge
  954. end
  955. end
  956. end
  957.  
  958. if spell.Value == 'fiendfyre' and key == 'q' then
  959. local beamcf = char.Head.CFrame.p
  960. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  961. local part = workspace:FindPartOnRay(ray)
  962. local fyre = Instance.new('Part')
  963. fyre.Transparency = 0.5
  964. fyre.Material = 'SmoothPlastic'
  965. fyre.BrickColor = BrickColor.new(18)
  966. fyre.Shape = 'Ball'
  967. fyre.CFrame = char.Wand.CFrame * CFrame.new(0,0,-20)
  968. fyre.Anchored = true
  969. fyre.Parent = workspace
  970. fyre.Size = Vector3.new(20,20,20)
  971. local fyre3 = Instance.new('Fire',fyre)
  972. fyre3.Size = 50
  973. fyre3.Heat = 100
  974. function fyrehit(hit)
  975. if hit.Parent.ClassName ~= 'Hat' and hit.Parent.Name ~= name then
  976. hit:BreakJoints()
  977. local fyre2 = Instance.new('Fire',hit)
  978. hit.Material = 'CorrodedMetal'
  979. fyre2.Size = 50
  980. fyre2.Heat = 100
  981. end
  982. end
  983. fyre.Touched:connect(fyrehit)
  984.  
  985. repeat
  986. wait()
  987. fyre.CFrame = fyre.CFrame * CFrame.new(0,0,-20)
  988. fyre.Transparency = fyre.Transparency + 0.05
  989. until fyre.Transparency > 5
  990. fyre:remove()
  991.  
  992. end
  993.  
  994. if spell.Value == 'flipendo' and key == 'q' then
  995. local beamcf = char.Head.CFrame.p
  996. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  997. local part = workspace:FindPartOnRay(ray)
  998. if part then
  999. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  1000.  
  1001. local vel = Instance.new('BodyVelocity',part)
  1002. vel.Velocity = char.Torso.CFrame.lookVector * 1000
  1003. wait(1)
  1004. vel:remove()
  1005.  
  1006. end
  1007. end
  1008. end
  1009.  
  1010. if spell.Value == 'flipendo duo' and key == 'q' then
  1011. local beamcf = char.Head.CFrame.p
  1012. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  1013. local part = workspace:FindPartOnRay(ray)
  1014. if part then
  1015. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  1016.  
  1017. local vel = Instance.new('BodyVelocity',part)
  1018. vel.Velocity = char.Torso.CFrame.lookVector * 10000
  1019. wait(1)
  1020. vel:remove()
  1021.  
  1022. end
  1023. end
  1024. end
  1025.  
  1026. if spell.Value == 'flipendo tria' and key == 'q' then
  1027. local beamcf = char.Head.CFrame.p
  1028. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  1029. local part = workspace:FindPartOnRay(ray)
  1030. if part then
  1031. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  1032.  
  1033. local vel = Instance.new('BodyVelocity',part)
  1034. vel.Velocity = char.Torso.CFrame.lookVector * 1000000
  1035. wait(1)
  1036. vel:remove()
  1037.  
  1038. end
  1039. end
  1040. end
  1041.  
  1042. if spell.Value == 'fumos' and key == 'q' then
  1043. local beamcf = char.Head.CFrame.p
  1044. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  1045. local part = workspace:FindPartOnRay(ray)
  1046. if part then
  1047. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  1048.  
  1049. local cloud = Instance.new('Smoke',char.Torso)
  1050. cloud.Opacity = 100
  1051. cloud.Size = 100
  1052.  
  1053. wait(10)
  1054.  
  1055. cloud:remove()
  1056.  
  1057. end
  1058. end
  1059. end
  1060.  
  1061. if spell.Value == 'fumos duo' and key == 'q' then
  1062. local beamcf = char.Head.CFrame.p
  1063. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  1064. local part = workspace:FindPartOnRay(ray)
  1065. if part then
  1066. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  1067.  
  1068. local cloud = Instance.new('Smoke',char.Torso)
  1069. cloud.Opacity = 100
  1070. cloud.Size = 100
  1071.  
  1072. wait(20)
  1073.  
  1074. cloud:remove()
  1075.  
  1076. end
  1077. end
  1078. end
  1079.  
  1080. if spell.Value == 'glacius' and key == 'q' then
  1081. local beamcf = char.Head.CFrame.p
  1082. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  1083. local part = workspace:FindPartOnRay(ray)
  1084. if part then
  1085. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  1086.  
  1087. local mark = Instance.new('Part')
  1088. mark.Parent = workspace
  1089. mark.Transparency = 1
  1090. mark.Anchored = true
  1091.  
  1092. repeat
  1093. local glacier = Instance.new('Part')
  1094. glacier.Transparency = 0.5
  1095. glacier.Material = 'SmoothPlastic'
  1096. glacier.BrickColor = BrickColor.new(336)
  1097. glacier.Anchored = true
  1098. glacier.Size = Vector3.new(20,20,20)
  1099. glacier.CFrame = char.Wand.CFrame * CFrame.new(0,0,-25)
  1100. glacier.Name = 'glacier'
  1101.  
  1102. function glac(hit)
  1103.  
  1104. local glacier2 = Instance.new('Part')
  1105. glacier2.Transparency = 0.5
  1106. glacier2.Material = 'SmoothPlastic'
  1107. glacier2.BrickColor = BrickColor.new(336)
  1108. glacier2.Anchored = true
  1109. glacier2.Size = Vector3.new(10,10,10)
  1110.  
  1111. if hit.Parent.Name ~= name and hit.Name ~= 'Base' then
  1112. glacier2.Parent = workspace
  1113. glacier2.CFrame = hit.CFrame
  1114. hit.Anchored = true
  1115. end
  1116. end
  1117. glacier.Touched:connect(glac)
  1118.  
  1119. wait()
  1120. glacier.Parent = workspace
  1121. game:GetService('RunService').Stepped:connect(function()
  1122. glacier.CFrame = glacier.CFrame * CFrame.new(0,0,-1)
  1123. end)
  1124. mark.Transparency = mark.Transparency + 0.05
  1125. until mark.Transparency > 2
  1126.  
  1127. wait(10)
  1128.  
  1129. removeglacier = workspace:GetChildren()
  1130. for i= 1, #removeglacier do
  1131. if removeglacier[i].Name == 'glacier' then
  1132. removeglacier[i]:remove()
  1133. end
  1134. end
  1135.  
  1136. end
  1137. end
  1138. end
  1139.  
  1140. if spell.Value == 'glacius duo' and key == 'q' then
  1141. local beamcf = char.Head.CFrame.p
  1142. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  1143. local part = workspace:FindPartOnRay(ray)
  1144. if part then
  1145. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  1146.  
  1147. local mark = Instance.new('Part')
  1148. mark.Parent = workspace
  1149. mark.Transparency = 1
  1150. mark.Anchored = true
  1151.  
  1152. repeat
  1153. local glacier = Instance.new('Part')
  1154. glacier.Transparency = 0.5
  1155. glacier.Material = 'SmoothPlastic'
  1156. glacier.BrickColor = BrickColor.new(336)
  1157. glacier.Anchored = true
  1158. glacier.Size = Vector3.new(40,40,40)
  1159. glacier.CFrame = char.Wand.CFrame * CFrame.new(0,0,-45)
  1160. glacier.Name = 'glacier'
  1161.  
  1162. function glac(hit)
  1163.  
  1164. local glacier2 = Instance.new('Part')
  1165. glacier2.Transparency = 0.5
  1166. glacier2.Material = 'SmoothPlastic'
  1167. glacier2.BrickColor = BrickColor.new(336)
  1168. glacier2.Anchored = true
  1169. glacier2.Size = Vector3.new(10,10,10)
  1170.  
  1171. if hit.Parent.Name ~= name and hit.Name ~= 'Base' then
  1172. glacier2.Parent = workspace
  1173. glacier2.CFrame = hit.CFrame
  1174. hit.Anchored = true
  1175. end
  1176. end
  1177. glacier.Touched:connect(glac)
  1178.  
  1179. wait()
  1180. glacier.Parent = workspace
  1181. game:GetService('RunService').Stepped:connect(function()
  1182. glacier.CFrame = glacier.CFrame * CFrame.new(0,0,-1)
  1183. end)
  1184. mark.Transparency = mark.Transparency + 0.05
  1185. until mark.Transparency > 2
  1186.  
  1187. wait(20)
  1188.  
  1189. removeglacier = workspace:GetChildren()
  1190. for i= 1, #removeglacier do
  1191. if removeglacier[i].Name == 'glacier' then
  1192. removeglacier[i]:remove()
  1193. end
  1194. end
  1195.  
  1196. end
  1197. end
  1198. end
  1199.  
  1200. if spell.Value == 'glacius tria' and key == 'q' then
  1201. local beamcf = char.Head.CFrame.p
  1202. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  1203. local part = workspace:FindPartOnRay(ray)
  1204. if part then
  1205. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  1206.  
  1207. local mark = Instance.new('Part')
  1208. mark.Parent = workspace
  1209. mark.Transparency = 1
  1210. mark.Anchored = true
  1211.  
  1212. repeat
  1213. local glacier = Instance.new('Part')
  1214. glacier.Transparency = 0.5
  1215. glacier.Material = 'SmoothPlastic'
  1216. glacier.BrickColor = BrickColor.new(336)
  1217. glacier.Anchored = true
  1218. glacier.Size = Vector3.new(100,100,100)
  1219. glacier.CFrame = char.Wand.CFrame * CFrame.new(0,0,-105)
  1220. glacier.Name = 'glacier'
  1221.  
  1222. function glac(hit)
  1223.  
  1224. local glacier2 = Instance.new('Part')
  1225. glacier2.Transparency = 0.5
  1226. glacier2.Material = 'SmoothPlastic'
  1227. glacier2.BrickColor = BrickColor.new(336)
  1228. glacier2.Anchored = true
  1229. glacier2.Size = Vector3.new(10,10,10)
  1230.  
  1231. if hit.Parent.Name ~= name and hit.Name ~= 'Base' then
  1232. glacier2.Parent = workspace
  1233. glacier2.CFrame = hit.CFrame
  1234. hit.Anchored = true
  1235. end
  1236. end
  1237. glacier.Touched:connect(glac)
  1238.  
  1239. wait()
  1240. glacier.Parent = workspace
  1241. game:GetService('RunService').Stepped:connect(function()
  1242. glacier.CFrame = glacier.CFrame * CFrame.new(0,0,-1)
  1243. end)
  1244. mark.Transparency = mark.Transparency + 0.05
  1245. until mark.Transparency > 2
  1246.  
  1247. wait(50)
  1248.  
  1249. removeglacier = workspace:GetChildren()
  1250. for i= 1, #removeglacier do
  1251. if removeglacier[i].Name == 'glacier' then
  1252. removeglacier[i]:remove()
  1253. end
  1254. end
  1255.  
  1256. end
  1257. end
  1258. end
  1259.  
  1260. if spell.Value == 'glisseo' and key == 'q' then
  1261. local beamcf = char.Head.CFrame.p
  1262. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  1263. local part = workspace:FindPartOnRay(ray)
  1264. if part then
  1265. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  1266.  
  1267. part.Friction = 0
  1268.  
  1269. end
  1270. end
  1271. end
  1272.  
  1273. if spell.Value == 'herbifors' and key == 'q' then
  1274. local beamcf = char.Head.CFrame.p
  1275. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  1276. local part = workspace:FindPartOnRay(ray)
  1277. if part then
  1278. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  1279.  
  1280. local flower = Instance.new('Part',workspace)
  1281. flower.Position = mouse.hit.p
  1282. flower.Anchored = true
  1283. flower.Size = Vector3.new(1,1,1)
  1284. local mesh = Instance.new('SpecialMesh',flower)
  1285. mesh.MeshType = Enum.MeshType.FileMesh
  1286. mesh.MeshId = 'http://www.roblox.com/asset/?id=16215991'
  1287. mesh.TextureId = 'http://www.roblox.com/asset/?id=16216333'
  1288. mesh.Scale = Vector3.new(0.5, 0.5, 0.5)
  1289.  
  1290. end
  1291. end
  1292. end
  1293.  
  1294. if spell.Value == 'herbivicus' and key == 'q' then
  1295. local beamcf = char.Head.CFrame.p
  1296. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  1297. local part = workspace:FindPartOnRay(ray)
  1298. if part then
  1299. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  1300.  
  1301. local flower = Instance.new('Part',workspace)
  1302. flower.Position = mouse.hit.p
  1303. flower.Anchored = true
  1304. flower.Size = Vector3.new(5, 50, 5)
  1305. local mesh = Instance.new('SpecialMesh',flower)
  1306. mesh.MeshType = Enum.MeshType.FileMesh
  1307. mesh.MeshId = 'http://www.roblox.com/asset/?id=1090398'
  1308. mesh.TextureId = 'http://www.roblox.com/asset/?id=1090399'
  1309. mesh.Scale = Vector3.new(50, 50, 50)
  1310.  
  1311. end
  1312. end
  1313. end
  1314.  
  1315. if spell.Value == 'immobulus' and key == 'q' then
  1316. local beamcf = char.Head.CFrame.p
  1317. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  1318. local part = workspace:FindPartOnRay(ray)
  1319. if part then
  1320. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  1321.  
  1322. part.Anchored = true
  1323.  
  1324. end
  1325. end
  1326. end
  1327.  
  1328. if spell.Value == 'impedimenta' and key == 'q' then
  1329. local beamcf = char.Head.CFrame.p
  1330. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  1331. local part = workspace:FindPartOnRay(ray)
  1332. if part then
  1333. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  1334.  
  1335. part.Anchored = true
  1336.  
  1337. end
  1338. end
  1339. end
  1340.  
  1341. if spell.Value == 'imperio' and key == 'q' then
  1342. local beamcf = char.Head.CFrame.p
  1343. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  1344. local part = workspace:FindPartOnRay(ray)
  1345. if part then
  1346. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  1347.  
  1348. game:GetService('RunService').Stepped:connect(function()
  1349. part.CFrame = mouse.hit
  1350. end)
  1351.  
  1352. end
  1353. end
  1354. end
  1355.  
  1356. if spell.Value == 'impervius' and key == 'q' then
  1357. local beamcf = char.Head.CFrame.p
  1358. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  1359. local part = workspace:FindPartOnRay(ray)
  1360. if part then
  1361. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  1362.  
  1363. local vel = Instance.new('BodyVelocity',part)
  1364. vel.Velocity = char.Torso.CFrame.lookVector * 10000000
  1365. wait(1)
  1366. vel:remove()
  1367.  
  1368. end
  1369. end
  1370. end
  1371.  
  1372. if spell.Value == 'inanimatus conjurus' and key == 'q' then
  1373. local beamcf = char.Head.CFrame.p
  1374. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  1375. local part = workspace:FindPartOnRay(ray)
  1376. if part then
  1377. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  1378.  
  1379. part.Anchored = false
  1380.  
  1381. end
  1382. end
  1383. end
  1384.  
  1385. if spell.Value == 'incarcerous' and key == 'q' then
  1386. local beamcf = char.Head.CFrame.p
  1387. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  1388. local part = workspace:FindPartOnRay(ray)
  1389. if part then
  1390. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  1391.  
  1392. local part2 = Instance.new('Part',workspace)
  1393. part2.Material = 'Wood'
  1394. --part2.CanCollide = false
  1395. part2.Size = Vector3.new(5,1,5)
  1396. part2.Anchored = true
  1397. local weld2 = Instance.new('Weld',part2)
  1398. weld2.Part1 = part
  1399. weld2.Part0 = part2
  1400. while true do
  1401. wait()
  1402. part2.CFrame = part.CFrame
  1403. end
  1404.  
  1405. end
  1406. end
  1407. end
  1408.  
  1409. if spell.Value == 'incendio' and key == 'q' then
  1410. local beamcf = char.Head.CFrame.p
  1411. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  1412. local part = workspace:FindPartOnRay(ray)
  1413. if part then
  1414. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  1415.  
  1416. local fire = Instance.new('Fire',part)
  1417. fire.Size = 20
  1418. fire.Heat = 100
  1419. part:BreakJoints()
  1420. part.Material = 'Cobblestone'
  1421. part.BrickColor = BrickColor.new(1003)
  1422.  
  1423. end
  1424. end
  1425. end
  1426.  
  1427. if spell.Value == 'incendio duo' and key == 'q' then
  1428. local beamcf = char.Head.CFrame.p
  1429. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  1430. local part = workspace:FindPartOnRay(ray)
  1431. if part then
  1432. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  1433.  
  1434. local fire = Instance.new('Fire',part)
  1435. fire.Size = 50
  1436. fire.Heat = 100
  1437. part:BreakJoints()
  1438. part.Material = 'Cobblestone'
  1439. part.BrickColor = BrickColor.new(1003)
  1440.  
  1441. end
  1442. end
  1443. end
  1444.  
  1445. if spell.Value == 'incendio tria' and key == 'q' then
  1446. local beamcf = char.Head.CFrame.p
  1447. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  1448. local part = workspace:FindPartOnRay(ray)
  1449. if part then
  1450. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  1451.  
  1452. local fire = Instance.new('Fire',part)
  1453. fire.Size = 100
  1454. fire.Heat = 100
  1455. part:BreakJoints()
  1456. part.Material = 'Cobblestone'
  1457. part.BrickColor = BrickColor.new(1003)
  1458.  
  1459. end
  1460. end
  1461. end
  1462.  
  1463. if spell.Value == 'inflatus' and key == 'q' then
  1464. local beamcf = char.Head.CFrame.p
  1465. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  1466. local part = workspace:FindPartOnRay(ray)
  1467. if part then
  1468. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  1469.  
  1470. part.Size = part.Size + Vector3.new(20,20,20)
  1471.  
  1472. end
  1473. end
  1474. end
  1475.  
  1476. if spell.Value == 'locomotor wibbly' and key == 'q' then
  1477. local beamcf = char.Head.CFrame.p
  1478. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  1479. local part = workspace:FindPartOnRay(ray)
  1480. if part then
  1481. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  1482. if part.Parent:FindFirstChild('Humanoid') ~= nil then
  1483. part.Parent.HumanoidRootPart:remove()
  1484. end
  1485. end
  1486. end
  1487. end
  1488.  
  1489. if spell.Value == 'lacarnum inflamarae' and key == 'q' then
  1490. local beamcf = char.Head.CFrame.p
  1491. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  1492. local part = workspace:FindPartOnRay(ray)
  1493. if part then
  1494. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  1495. local fire = Instance.new('Fire',part)
  1496. fire.Size = 20
  1497. fire.Heat = 100
  1498. part:BreakJoints()
  1499. part.Material = 'Cobblestone'
  1500. part.BrickColor = BrickColor.new(1003)
  1501. end
  1502. end
  1503. end
  1504.  
  1505. if spell.Value == 'levicorpus' and key == 'q' then
  1506. local beamcf = char.Head.CFrame.p
  1507. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  1508. local part = workspace:FindPartOnRay(ray)
  1509. if part then
  1510. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  1511. part.CFrame = part.CFrame * CFrame.new(0,10,0)
  1512. wait()
  1513. part.CFrame = part.CFrame * CFrame.Angles(180,0,0)
  1514. part.Anchored = true
  1515. end
  1516. end
  1517. end
  1518.  
  1519. if spell.Value == 'liberacorpus' and key == 'q' then
  1520. local beamcf = char.Head.CFrame.p
  1521. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  1522. local part = workspace:FindPartOnRay(ray)
  1523. if part then
  1524. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  1525. part.Anchored = false
  1526. end
  1527. end
  1528. end
  1529.  
  1530. if spell.Value == 'locomotor' and key == 'q' then
  1531. local beamcf = char.Head.CFrame.p
  1532. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  1533. local part = workspace:FindPartOnRay(ray)
  1534. if part then
  1535. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  1536. game:GetService('RunService').Stepped:connect(function()
  1537. part.CFrame = mouse.hit
  1538. end)
  1539. end
  1540. end
  1541. end
  1542.  
  1543. if spell.Value == 'locomotor mortis' and key == 'q' then
  1544. local beamcf = char.Head.CFrame.p
  1545. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  1546. local part = workspace:FindPartOnRay(ray)
  1547. if part then
  1548. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  1549. if part.Parent:FindFirstChild('Humanoid') ~= nil then
  1550. part.Parent.Humanoid.Sit = true
  1551. end
  1552. end
  1553. end
  1554. end
  1555.  
  1556. if spell.Value == 'lumos' and key == 'q' then
  1557. local beamcf = char.Head.CFrame.p
  1558. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  1559. local part = workspace:FindPartOnRay(ray)
  1560. if part then
  1561. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  1562. local pl = Instance.new('PointLight',char.Wand)
  1563. pl.Range = 20
  1564. pl.Brightness = 80
  1565. end
  1566. end
  1567. end
  1568.  
  1569. if spell.Value == 'lumos duo' and key == 'q' then
  1570. local beamcf = char.Head.CFrame.p
  1571. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  1572. local part = workspace:FindPartOnRay(ray)
  1573. if part then
  1574. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  1575. local pl = Instance.new('PointLight',char.Wand)
  1576. pl.Range = 60
  1577. pl.Brightness = 80
  1578. end
  1579. end
  1580. end
  1581.  
  1582. if spell.Value == 'lumos maxima' and key == 'q' then
  1583. local beamcf = char.Head.CFrame.p
  1584. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  1585. local part = workspace:FindPartOnRay(ray)
  1586. if part then
  1587. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  1588.  
  1589. local light = Instance.new('Part')
  1590. light.Parent = workspace
  1591. light.Transparency = 1
  1592. light.BrickColor = BrickColor.new(332)
  1593. light:BreakJoints()
  1594. light.Material = 'SmoothPlastic'
  1595. light.CFrame = wand.CFrame * CFrame.new(0,0,-10)
  1596. light.CanCollide = false
  1597. light.Size = Vector3.new(1,1,1)
  1598. local move = Instance.new('BodyPosition',light)
  1599. move.Position = mouse.hit.p
  1600.  
  1601. local pl = Instance.new('PointLight',light)
  1602. pl.Range = 60
  1603. pl.Brightness = 80
  1604.  
  1605. wait(10)
  1606. light:remove()
  1607. end
  1608. end
  1609. end
  1610.  
  1611. if spell.Value == 'lumos solem' and key == 'q' then
  1612. local beamcf = char.Head.CFrame.p
  1613. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  1614. local part = workspace:FindPartOnRay(ray)
  1615. if part then
  1616. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  1617.  
  1618. local mark = Instance.new('Part')
  1619. mark.Parent = workspace
  1620. mark.Transparency = 1
  1621. mark.Anchored = true
  1622.  
  1623. repeat
  1624. local pl = Instance.new('PointLight')
  1625. pl.Range = 60
  1626. pl.Brightness = 80
  1627. wait()
  1628. mark.Transparency = mark.Transparency + 0.05
  1629. pl.Parent = char.Wand
  1630. until mark.Transparency > 3
  1631.  
  1632. local nolight = char.Wand:GetChildren()
  1633. for i= 1, #nolight do
  1634. if nolight[i].ClassName == 'PointLight' then
  1635. nolight[i]:remove()
  1636. end
  1637. end
  1638.  
  1639. end
  1640. end
  1641. end
  1642.  
  1643. if spell.Value == 'mobiliarbus' and key == 'q' then
  1644. local beamcf = char.Head.CFrame.p
  1645. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  1646. local part = workspace:FindPartOnRay(ray)
  1647. if part then
  1648. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  1649. game:GetService('RunService').Stepped:connect(function()
  1650. part.CFrame = mouse.hit
  1651. end)
  1652. end
  1653. end
  1654. end
  1655.  
  1656. if spell.Value == 'mobilicorpus' and key == 'q' then
  1657. local beamcf = char.Head.CFrame.p
  1658. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  1659. local part = workspace:FindPartOnRay(ray)
  1660. if part then
  1661. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  1662. game:GetService('RunService').Stepped:connect(function()
  1663. part.CFrame = mouse.hit
  1664. end)
  1665. end
  1666. end
  1667. end
  1668.  
  1669. if spell.Value == 'morsmordre' and key == 'q' then
  1670. local beamcf = char.Head.CFrame.p
  1671. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  1672. local part = workspace:FindPartOnRay(ray)
  1673. if part then
  1674. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  1675.  
  1676. local mark = Instance.new('Part',workspace)
  1677. mark.CFrame = char.Torso.CFrame * CFrame.new(0,500,0)
  1678. mark.Anchored = true
  1679. mark.BrickColor = BrickColor.new('Earth green')
  1680. mark.Size = Vector3.new(5, 5, 5)
  1681. local mesh = Instance.new('SpecialMesh',mark)
  1682. mesh.MeshType = Enum.MeshType.FileMesh
  1683. mesh.MeshId = 'http://www.roblox.com/asset/?id=36869983'
  1684. mesh.Scale = Vector3.new(120, 120, 120)
  1685.  
  1686. end
  1687. end
  1688. end
  1689.  
  1690. if spell.Value == 'nox' and key == 'q' then
  1691. local beamcf = char.Head.CFrame.p
  1692. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  1693. local part = workspace:FindPartOnRay(ray)
  1694. if part then
  1695. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  1696.  
  1697. local nolight = char.Wand:GetChildren()
  1698. for i= 1, #nolight do
  1699. if nolight[i].ClassName == 'PointLight' then
  1700. nolight[i]:remove()
  1701. end
  1702. end
  1703.  
  1704. end
  1705. end
  1706. end
  1707.  
  1708. if spell.Value == 'orbis' and key == 'q' then
  1709. local beamcf = char.Head.CFrame.p
  1710. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  1711. local part = workspace:FindPartOnRay(ray)
  1712. if part then
  1713. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  1714.  
  1715. part.Anchored = true
  1716.  
  1717. repeat
  1718. wait()
  1719. part.CFrame = part.CFrame * CFrame.new(0,-0.05,0)
  1720. until nil
  1721.  
  1722. end
  1723. end
  1724. end
  1725.  
  1726. if spell.Value == 'partis temporus' and key == 'q' then
  1727. local beamcf = char.Head.CFrame.p
  1728. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  1729. local part = workspace:FindPartOnRay(ray)
  1730. if part then
  1731. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  1732.  
  1733. local patronum = Instance.new('Part')
  1734. patronum.Material = 'Neon'
  1735. patronum.BrickColor = BrickColor.new(1)
  1736. patronum.Shape = 'Ball'
  1737. patronum.CFrame = char.Wand.CFrame * CFrame.new(0,0,-20)
  1738. patronum.Anchored = true
  1739. patronum.Parent = workspace
  1740. patronum.Size = Vector3.new(30,30,30)
  1741. patronum.CanCollide = false
  1742.  
  1743. end
  1744. end
  1745. end
  1746.  
  1747. if spell.Value == 'periculum' and key == 'q' then
  1748. local beamcf = char.Head.CFrame.p
  1749. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  1750. local part = workspace:FindPartOnRay(ray)
  1751. if part then
  1752. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  1753.  
  1754. local light = Instance.new('Part')
  1755. light.Parent = workspace
  1756. light.Transparency = 1
  1757. light.BrickColor = BrickColor.new(332)
  1758. light:BreakJoints()
  1759. light.Material = 'SmoothPlastic'
  1760. light.CFrame = wand.CFrame * CFrame.new(0,0,-10)
  1761. light.CanCollide = false
  1762. light.Size = Vector3.new(1,1,1)
  1763. local move = Instance.new('BodyPosition',light)
  1764. move.Position = mouse.hit.p
  1765. local spark = Instance.new('Sparkles',light)
  1766.  
  1767. end
  1768. end
  1769. end
  1770.  
  1771. if spell.Value == 'petrificus totalus' and key == 'q' then
  1772. local beamcf = char.Head.CFrame.p
  1773. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  1774. local part = workspace:FindPartOnRay(ray)
  1775. if part then
  1776. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  1777.  
  1778. part.Anchored = true
  1779.  
  1780. end
  1781. end
  1782. end
  1783.  
  1784. if spell.Value == 'protego' and key == 'q' then
  1785. local beamcf = char.Head.CFrame.p
  1786. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  1787. local part = workspace:FindPartOnRay(ray)
  1788. if part then
  1789. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  1790.  
  1791. local patronum = Instance.new('Part')
  1792. patronum.BrickColor = BrickColor.new(102)
  1793. patronum.Shape = 'Ball'
  1794. patronum.Anchored = true
  1795. patronum.Parent = workspace
  1796. patronum.CFrame = char.Wand.CFrame * CFrame.new(0,0,-20)
  1797. patronum.Size = Vector3.new(15,15,15)
  1798. patronum.CanCollide = false
  1799.  
  1800. end
  1801. end
  1802. end
  1803.  
  1804. if spell.Value == 'protego horribilis' and key == 'q' then
  1805. local beamcf = char.Head.CFrame.p
  1806. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  1807. local part = workspace:FindPartOnRay(ray)
  1808. if part then
  1809. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  1810.  
  1811. local patronum = Instance.new('Part')
  1812. patronum.BrickColor = BrickColor.new(1)
  1813. patronum.Shape = 'Ball'
  1814. patronum.Anchored = true
  1815. patronum.Parent = script
  1816. patronum.CFrame = char.Wand.CFrame * CFrame.new(0,0,-35)
  1817. patronum.Size = Vector3.new(30,30,30)
  1818. patronum.CanCollide = false
  1819.  
  1820. end
  1821. end
  1822. end
  1823.  
  1824. if spell.Value == 'protego maxima' and key == 'q' then
  1825. local beamcf = char.Head.CFrame.p
  1826. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  1827. local part = workspace:FindPartOnRay(ray)
  1828. if part then
  1829. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  1830.  
  1831. local patronum = Instance.new('Part')
  1832. patronum.BrickColor = BrickColor.new(1)
  1833. patronum.Shape = 'Ball'
  1834. patronum.Anchored = true
  1835. patronum.Parent = script
  1836. patronum.CFrame = char.Wand.CFrame * CFrame.new(0,0,-20)
  1837. patronum.Size = Vector3.new(15,15,15)
  1838. patronum.CanCollide = false
  1839.  
  1840. end
  1841. end
  1842. end
  1843.  
  1844. if spell.Value == 'protego totalum' and key == 'q' then
  1845. local beamcf = char.Head.CFrame.p
  1846. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  1847. local part = workspace:FindPartOnRay(ray)
  1848. if part then
  1849. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  1850.  
  1851. local patronum = Instance.new('Part')
  1852. patronum.BrickColor = BrickColor.new(1)
  1853. patronum.Transparency = 1
  1854. patronum.Shape = 'Ball'
  1855. patronum.CFrame = mouse.hit
  1856. patronum.Anchored = true
  1857. patronum.Parent = script
  1858. patronum.Size = Vector3.new(15,15,15)
  1859.  
  1860. end
  1861. end
  1862. end
  1863.  
  1864. if spell.Value == 'redactum skullus' and key == 'q' then
  1865. local beamcf = char.Head.CFrame.p
  1866. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  1867. local part = workspace:FindPartOnRay(ray)
  1868. if part then
  1869. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  1870.  
  1871. if part.Parent:FindFirstChild('Humanoid') ~= nil then
  1872. part.Parent.Head.Mesh.Scale = Vector3.new(.2,.2,.2)
  1873. end
  1874.  
  1875. end
  1876. end
  1877. end
  1878.  
  1879. if spell.Value == 'reducio' and key == 'q' then
  1880. local beamcf = char.Head.CFrame.p
  1881. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  1882. local part = workspace:FindPartOnRay(ray)
  1883. if part then
  1884. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  1885.  
  1886. part.Size = part.Size - Vector3.new(10,10,10)
  1887.  
  1888. end
  1889. end
  1890. end
  1891.  
  1892. if spell.Value == 'reducto' and key == 'q' then
  1893. local beamcf = char.Head.CFrame.p
  1894. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  1895. local part = workspace:FindPartOnRay(ray)
  1896. if part then
  1897. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  1898.  
  1899. part:BreakJoints()
  1900.  
  1901. end
  1902. end
  1903. end
  1904.  
  1905. if spell.Value == 'relashio' and key == 'q' then
  1906. local beamcf = char.Head.CFrame.p
  1907. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  1908. local part = workspace:FindPartOnRay(ray)
  1909. if part then
  1910. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  1911.  
  1912. part:BreakJoints()
  1913.  
  1914. end
  1915. end
  1916. end
  1917.  
  1918. if spell.Value == 'rennervate' and key == 'q' then
  1919. local beamcf = char.Head.CFrame.p
  1920. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  1921. local part = workspace:FindPartOnRay(ray)
  1922. if part then
  1923. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  1924. if part.Parent:FindFirstChild('Humanoid') ~= nil then
  1925. part.Parent.Humanoid.PlatformStand = false
  1926. end
  1927. end
  1928. end
  1929. end
  1930.  
  1931. if spell.Value == 'rictusempra' and key == 'q' then
  1932. local beamcf = char.Head.CFrame.p
  1933. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  1934. local part = workspace:FindPartOnRay(ray)
  1935. if part then
  1936. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  1937. if part.Parent:FindFirstChild('Humanoid') ~= nil then
  1938. while true do
  1939. wait(math.random(1,5))
  1940. part.Parent.Humanoid.PlatformStand = true
  1941. end
  1942. end
  1943. end
  1944. end
  1945. end
  1946.  
  1947. if spell.Value == 'sectumsempra' and key == 'q' then
  1948. local beamcf = char.Head.CFrame.p
  1949. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  1950. local part = workspace:FindPartOnRay(ray)
  1951. if part then
  1952. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  1953. if part.Parent:FindFirstChild('Humanoid') ~= nil then
  1954. part.Parent.Humanoid.PlatformStand = true
  1955. part.Parent.Humanoid.Health = part.Parent.Humanoid.Health - 10
  1956. end
  1957. end
  1958. end
  1959. end
  1960.  
  1961. if spell.Value == 'serpensortia' and key == 'q' then
  1962. local beamcf = char.Head.CFrame.p
  1963. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  1964. local part = workspace:FindPartOnRay(ray)
  1965. if part then
  1966. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  1967.  
  1968. local spider = Instance.new('Part')
  1969. spider.BrickColor = BrickColor.new('Earth green')
  1970. spider.Size = Vector3.new(1,1,1)
  1971. spider.Parent = workspace
  1972. spider.CFrame = char.Wand.CFrame * CFrame.new(0,0,-5)
  1973. local mesh = Instance.new('SpecialMesh',spider)
  1974. mesh.MeshType = Enum.MeshType.FileMesh
  1975. mesh.MeshId = 'http://www.roblox.com/asset/?id=49046138'
  1976. mesh.Scale = Vector3.new(1,1,1)
  1977. local pos = Instance.new('BodyPosition',spider)
  1978. pos.Position = mouse.hit.p
  1979.  
  1980. function venom(hit)
  1981. if hit.Parent:FindFirstChild('Humanoid') ~= nil then
  1982. spider:remove()
  1983. repeat
  1984. wait(1)
  1985. hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health - 10
  1986. until hit.Parent.Humanoid.Health < 20
  1987. end
  1988. end
  1989. spider.Touched:connect(venom)
  1990.  
  1991. wait(5)
  1992. spider:remove()
  1993. end
  1994. end
  1995. end
  1996.  
  1997. if spell.Value == 'silencio' and key == 'q' then
  1998. local beamcf = char.Head.CFrame.p
  1999. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  2000. local part = workspace:FindPartOnRay(ray)
  2001. if part then
  2002. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  2003.  
  2004. silence = part:GetChildren()
  2005. for i= 1, #silence do
  2006. if silence[i].ClassName == 'Sound' then
  2007. silence[i]:remove()
  2008. end
  2009. end
  2010.  
  2011.  
  2012. end
  2013. end
  2014. end
  2015.  
  2016. if spell.Value == 'slugulus eructo' and key == 'q' then
  2017. local beamcf = char.Head.CFrame.p
  2018. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  2019. local part = workspace:FindPartOnRay(ray)
  2020. if part then
  2021. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  2022. if part.Parent:FindFirstChild('Humanoid') ~= nil then
  2023.  
  2024. local mark = Instance.new('Part')
  2025. mark.Parent = workspace
  2026. mark.Transparency = 1
  2027. mark.Anchored = true
  2028.  
  2029. repeat
  2030. local spider = Instance.new('Part')
  2031. spider.Size = Vector3.new(1,1,1)
  2032. spider.BrickColor = BrickColor.new(1003)
  2033. local mesh = Instance.new('SpecialMesh')
  2034. mesh.MeshType = Enum.MeshType.FileMesh
  2035. mesh.MeshId = 'http://www.roblox.com/asset/?id=11144802'
  2036. mesh.Scale = Vector3.new(.5,.5,.5)
  2037. wait(math.random(1,5))
  2038. mark.Transparency = mark.Transparency + 0.1
  2039. spider.Parent = workspace
  2040. mesh.Parent = spider
  2041. spider.CFrame = part.Parent.Head.CFrame
  2042. part.Parent.Humanoid.Sit = true
  2043. until mark.Transparency > 2
  2044.  
  2045.  
  2046. end
  2047. end
  2048. end
  2049. end
  2050.  
  2051. if spell.Value == 'steleus' and key == 'q' then
  2052. local beamcf = char.Head.CFrame.p
  2053. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  2054. local part = workspace:FindPartOnRay(ray)
  2055. if part then
  2056. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  2057. if part.Parent:FindFirstChild('Humanoid') ~= nil then
  2058. part.Parent.Humanoid.Jump = true
  2059. wait()
  2060. part.Parent.Humanoid.Sit = true
  2061. end
  2062. end
  2063. end
  2064. end
  2065.  
  2066. if spell.Value == 'stupefy' and key == 'q' then
  2067. local beamcf = char.Head.CFrame.p
  2068. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  2069. local part = workspace:FindPartOnRay(ray)
  2070. if part then
  2071. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  2072. if part.Parent:FindFirstChild('Humanoid') ~= nil then
  2073. part.Parent.Humanoid.Sit = true
  2074. part.Parent.Humanoid.Health = part.Parent.Humanoid.Health - 10
  2075. end
  2076. end
  2077. end
  2078. end
  2079.  
  2080. if spell.Value == 'tarantallegra' and key == 'q' then
  2081. local beamcf = char.Head.CFrame.p
  2082. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  2083. local part = workspace:FindPartOnRay(ray)
  2084. if part then
  2085. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  2086. if part.Parent:FindFirstChild('Humanoid') ~= nil then
  2087.  
  2088. while true do
  2089. wait(1)
  2090. part.Parent.Humanoid.WalkToPoint = Vector3.new(math.random(),0,math.random())
  2091. end
  2092. end
  2093. end
  2094. end
  2095. end
  2096.  
  2097. if spell.Value == 'ventus' and key == 'q' then
  2098. local beamcf = char.Head.CFrame.p
  2099. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  2100. local part = workspace:FindPartOnRay(ray)
  2101. if part then
  2102. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  2103.  
  2104. char.Torso.Anchored = true
  2105. local patronum = Instance.new('Part')
  2106. patronum.Material = 'Neon'
  2107. patronum.BrickColor = BrickColor.new(1)
  2108. patronum.Transparency = 1
  2109. patronum.Shape = 'Ball'
  2110. patronum.CFrame = char.Wand.CFrame
  2111. patronum.Anchored = true
  2112. patronum.Parent = workspace
  2113. patronum.Size = Vector3.new(1,1,1)
  2114. repeat
  2115. local cf = char.Wand.CFrame
  2116. wait()
  2117. patronum.Size = patronum.Size + Vector3.new(5,5,5)
  2118. patronum.Transparency = patronum.Transparency + 0.05
  2119. patronum.CFrame = cf
  2120. until patronum.Transparency > 2
  2121. patronum:remove()
  2122. char.Torso.Anchored = false
  2123. end
  2124. end
  2125. end
  2126.  
  2127. if spell.Value == 'ventus duo' and key == 'q' then
  2128. local beamcf = char.Head.CFrame.p
  2129. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  2130. local part = workspace:FindPartOnRay(ray)
  2131. if part then
  2132. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  2133.  
  2134. char.Torso.Anchored = true
  2135. local patronum = Instance.new('Part')
  2136. patronum.Material = 'Neon'
  2137. patronum.BrickColor = BrickColor.new(1)
  2138. patronum.Transparency = 1
  2139. patronum.Shape = 'Ball'
  2140. patronum.CFrame = char.Wand.CFrame
  2141. patronum.Anchored = true
  2142. patronum.Parent = workspace
  2143. patronum.Size = Vector3.new(1,1,1)
  2144. repeat
  2145. local cf = char.Wand.CFrame
  2146. wait()
  2147. patronum.Size = patronum.Size + Vector3.new(5,5,5)
  2148. patronum.Transparency = patronum.Transparency + 0.05
  2149. patronum.CFrame = cf
  2150. until patronum.Transparency > 4
  2151. patronum:remove()
  2152. char.Torso.Anchored = false
  2153. end
  2154. end
  2155. end
  2156.  
  2157. if spell.Value == 'vera verto' and key == 'q' then
  2158. local beamcf = char.Head.CFrame.p
  2159. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  2160. local part = workspace:FindPartOnRay(ray)
  2161. if part then
  2162. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  2163.  
  2164. local mesh = Instance.new('SpecialMesh',part)
  2165. mesh.MeshType = Enum.MeshType.FileMesh
  2166. mesh.MeshId = 'http://www.roblox.com/asset/?id=13117718'
  2167. part.BrickColor = BrickColor.new(1)
  2168. mesh.Scale = Vector3.new(1,1,1)
  2169.  
  2170. end
  2171. end
  2172. end
  2173.  
  2174. if spell.Value == 'verdillious' and key == 'q' then
  2175. local beamcf = char.Head.CFrame.p
  2176. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  2177. local part = workspace:FindPartOnRay(ray)
  2178. if part then
  2179. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  2180.  
  2181. local light = Instance.new('Part')
  2182. light.Parent = workspace
  2183. light.Transparency = 1
  2184. light.BrickColor = BrickColor.new(332)
  2185. light:BreakJoints()
  2186. light.Material = 'SmoothPlastic'
  2187. light.CFrame = wand.CFrame * CFrame.new(0,0,-10)
  2188. light.CanCollide = false
  2189. light.Size = Vector3.new(1,1,1)
  2190. local move = Instance.new('BodyPosition',light)
  2191. move.Position = mouse.hit.p
  2192. local spark = Instance.new('Sparkles',light)
  2193.  
  2194. end
  2195. end
  2196. end
  2197.  
  2198. if spell.Value == 'vulnera sanentur' and key == 'q' then
  2199. local beamcf = char.Head.CFrame.p
  2200. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  2201. local part = workspace:FindPartOnRay(ray)
  2202. if part then
  2203. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  2204. if part.Parent:FindFirstChild('Humanoid') ~= nil then
  2205. part.Parent.Humanoid.Health = part.Parent.Humanoid.MaxHealth
  2206. end
  2207. end
  2208. end
  2209. end
  2210.  
  2211. if spell.Value == 'waddiwasi' and key == 'q' then
  2212. local beamcf = char.Head.CFrame.p
  2213. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  2214. local part = workspace:FindPartOnRay(ray)
  2215. if part then
  2216. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  2217. local wad = Instance.new('Part',workspace)
  2218. wad.CFrame = char.Wand.CFrame * CFrame.new(0,0,-5)
  2219. end
  2220. end
  2221. end
  2222.  
  2223. if spell.Value == 'wingardium leviosa' and key == 'q' then
  2224. local beamcf = char.Head.CFrame.p
  2225. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  2226. local part = workspace:FindPartOnRay(ray)
  2227. if part then
  2228. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  2229. part.Anchored = true
  2230. part.CFrame = part.CFrame * CFrame.new(0,10,0)
  2231. wait(5)
  2232. part.Anchored = false
  2233. end
  2234. end
  2235. end
  2236.  
  2237. if spell.Value == 'melofors' and key == 'q' then
  2238. local beamcf = char.Head.CFrame.p
  2239. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  2240. local part = workspace:FindPartOnRay(ray)
  2241. if part then
  2242. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  2243. if part.Parent:FindFirstChild('Humanoid') ~= nil then
  2244. part.Parent.Head.Mesh.MeshId = 'http://www.roblox.com/asset/?id=1158007'
  2245. end
  2246. end
  2247. end
  2248. end
  2249.  
  2250. if spell.Value == 'tentaclifors' and key == 'q' then
  2251. local beamcf = char.Head.CFrame.p
  2252. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  2253. local part = workspace:FindPartOnRay(ray)
  2254. if part then
  2255. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  2256. if part.Parent:FindFirstChild('Humanoid') ~= nil then
  2257. part.Parent.Head.Mesh.MeshId = 'http://www.roblox.com/asset/?id=15039340'
  2258. end
  2259. end
  2260. end
  2261. end
  2262.  
  2263. if spell.Value == 'apparition' and key == 'q' then
  2264. char.Torso.CFrame = mouse.hit
  2265. end
  2266.  
  2267. if spell.Value == 'erecto' and key == 'q' then
  2268. local beamcf = char.Head.CFrame.p
  2269. local ray = Ray.new(beamcf, (mouse.Hit.p - beamcf).unit * 2e9)
  2270. local part = workspace:FindPartOnRay(ray)
  2271. if part then
  2272. if part.Parent.Name ~= name and part.Parent.ClassName ~= 'Hat' then
  2273.  
  2274. local flower = Instance.new('Part',workspace)
  2275. flower.Rotation = Vector3.new(-90, 0, 90)
  2276. flower.Position = mouse.hit.p
  2277. flower.Anchored = true
  2278. flower.Size = Vector3.new(7,7,7)
  2279. flower.CanCollide = false
  2280. local mesh = Instance.new('SpecialMesh',flower)
  2281. mesh.MeshType = Enum.MeshType.FileMesh
  2282. mesh.MeshId = 'http://www.roblox.com/asset/?id=56824172'
  2283. mesh.TextureId = 'http://www.roblox.com/asset/?id=57255885'
  2284. mesh.Scale = Vector3.new(7, 7, 7)
  2285.  
  2286. end
  2287. end
  2288. end
  2289.  
  2290. end
  2291. end
  2292. mouse.KeyDown:connect(KeyPress)
Add Comment
Please, Sign In to add comment