Guest User

Untitled

a guest
Oct 11th, 2020
3,643
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.60 KB | None | 0 0
  1. -- Instances:
  2.  
  3. local ScreenGui = Instance.new("ScreenGui")
  4. local Body = Instance.new("Frame")
  5. local TextBox = Instance.new("TextBox")
  6. local TextLabel = Instance.new("TextLabel")
  7.  
  8. --Properties:
  9.  
  10. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  11. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  12. ScreenGui.ResetOnSpawn = false
  13.  
  14. Body.Name = "Body "
  15. Body.Parent = ScreenGui
  16. Body.BackgroundColor3 = Color3.fromRGB(121, 121, 121)
  17. Body.Position = UDim2.new(0.646578193, 0, 0.752969146, 0)
  18. Body.Size = UDim2.new(0, 180, 0, 57)
  19.  
  20. TextBox.Parent = Body
  21. TextBox.BackgroundColor3 = Color3.fromRGB(198, 198, 198)
  22. TextBox.Position = UDim2.new(0.0166666675, 0, 0.374800622, 0)
  23. TextBox.Size = UDim2.new(0, 174, 0, 28)
  24. TextBox.Font = Enum.Font.SourceSans
  25. TextBox.Text = "Type Spell Here"
  26. TextBox.TextColor3 = Color3.fromRGB(0, 0, 0)
  27. TextBox.TextSize = 14.000
  28.  
  29. TextLabel.Parent = Body
  30. TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  31. TextLabel.BackgroundTransparency = 1.000
  32. TextLabel.Position = UDim2.new(0.116666667, 0, 0, 0)
  33. TextLabel.Size = UDim2.new(0, 138, 0, 14)
  34. TextLabel.Font = Enum.Font.Gotham
  35. TextLabel.Text = "Wizard Hack"
  36. TextLabel.TextColor3 = Color3.fromRGB(0, 0, 0)
  37. TextLabel.TextScaled = true
  38. TextLabel.TextSize = 14.000
  39. TextLabel.TextWrapped = true
  40.  
  41. -- Services
  42. local store = game:GetService("ReplicatedStorage");
  43. local UIS = game:GetService("UserInputService")
  44.  
  45. -- Player Variables
  46. local plr = game.Players.LocalPlayer
  47. local char = plr.Character;
  48. local hum = char:WaitForChild("Humanoid");
  49. local root = char:WaitForChild("HumanoidRootPart");
  50. local mouse = plr:GetMouse();
  51.  
  52. -- Various Variables
  53. local anims = store:WaitForChild("Animations");
  54. local animNo = 1
  55. local events = store:FindFirstChild("Events") or game:GetService("InsertService"):FindFirstChild("Events");
  56.  
  57. -- Choose casting Animation
  58. castAnims = {};
  59. for v1 = 1, 3 do
  60. castAnims[v1] = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(anims["cast" .. v1]);
  61. end;
  62. castAnim = castAnims[1];
  63.  
  64. -- Casting Anim function
  65. function setAttackAnim()
  66. animNo = ({ { 2, 3 }, { 1, 3 }, { 1, 2 } })[animNo][math.random(1, 2)];
  67. castAnim = castAnims[animNo];
  68. end;
  69.  
  70.  
  71. -- Sound IDs
  72. castDefault = 1014454856;
  73. castLightning = 521311884;
  74. castCurse = 984776549;
  75. castSoft = 522294173;
  76. castFire = 521308536;
  77. castFrost = 521309278;
  78. missDefault = 1014462782;
  79. missNeutral = 3008597262;
  80. hitDefault = 520219440;
  81. hitFire = 520817382;
  82. hitExplosion = 522282998;
  83. hitHeal = 523122491;
  84. hitFrost = 520816557;
  85.  
  86. -- Gotta get that projectile data
  87. local SpellData = {
  88. projectileData = {},
  89. uniqueSpells = {},
  90. hitEffects = {}
  91. };
  92. SpellData.projectileData["avada kedavra"] = {
  93. hostile = true,
  94. endHit = false,
  95. maxCasts = 1,
  96. coolDown = 0.4,
  97. speed = 250,
  98. range = 400,
  99. amplitude = 1.2,
  100. trailLength = 0.15,
  101. trailWidth = 0.2,
  102. color = Color3.new(0, 1, 0.3),
  103. shieldDamage = 20,
  104. castSound = castDefault,
  105. missSound = hitDefault,
  106. hitSound = hitDefault
  107. };
  108. SpellData.projectileData.expelliarmus = {
  109. hostile = true,
  110. endHit = false,
  111. maxCasts = 1,
  112. coolDown = 0,
  113. speed = 250,
  114. range = 400,
  115. amplitude = 0.8,
  116. trailLength = 0.15,
  117. trailWidth = 0.2,
  118. color = Color3.new(1, 0, 0),
  119. shieldDamage = 0,
  120. castSound = castDefault,
  121. missSound = missDefault,
  122. hitSound = hitDefault
  123. };
  124. SpellData.projectileData.stupefy = {
  125. hostile = true,
  126. endHit = false,
  127. maxCasts = 1,
  128. coolDown = 0,
  129. speed = 250,
  130. range = 400,
  131. amplitude = 0.2,
  132. trailLength = 0.04,
  133. trailWidth = 0.2,
  134. color = Color3.new(1, 1, 1),
  135. shieldDamage = 0,
  136. castSound = castDefault,
  137. missSound = missDefault,
  138. hitSound = hitDefault
  139. };
  140. SpellData.projectileData.flare = {
  141. hostile = true,
  142. endHit = false,
  143. maxCasts = 5,
  144. coolDown = 0.3,
  145. speed = 250,
  146. range = 400,
  147. amplitude = 0.3,
  148. trailLength = 0.08,
  149. trailWidth = 0.15,
  150. color = Color3.new(1, 0, 0),
  151. shieldDamage = 4,
  152. castSound = castDefault,
  153. missSound = missDefault,
  154. hitSound = hitDefault
  155. };
  156. SpellData.projectileData.reducto = {
  157. hostile = true,
  158. endHit = false,
  159. maxCasts = 1,
  160. coolDown = 0,
  161. speed = 250,
  162. range = 400,
  163. amplitude = 0.2,
  164. trailLength = 0.04,
  165. trailWidth = 0.2,
  166. color = Color3.new(1, 1, 1),
  167. shieldDamage = 20,
  168. castSound = castDefault,
  169. missSound = missDefault,
  170. hitSound = missDefault
  171. };
  172. SpellData.projectileData.expulso = {
  173. hostile = true,
  174. endHit = false,
  175. maxCasts = 3,
  176. coolDown = 0.3,
  177. speed = 250,
  178. range = 400,
  179. amplitude = 0.4,
  180. trailLength = 0.04,
  181. trailWidth = 0.225,
  182. color = Color3.new(0.2, 0.6, 1),
  183. shieldDamage = 20,
  184. castSound = castDefault,
  185. missSound = hitFire,
  186. hitSound = hitFire
  187. };
  188. SpellData.projectileData.bombarda = {
  189. hostile = true,
  190. endHit = false,
  191. maxCasts = 0.4,
  192. coolDown = 0.4,
  193. speed = 250,
  194. range = 400,
  195. amplitude = 0.4,
  196. trailLength = 0.04,
  197. trailWidth = 0.25,
  198. color = Color3.new(1, 0.2, 0.2),
  199. shieldDamage = 20,
  200. castSound = castDefault,
  201. missSound = hitExplosion,
  202. hitSound = hitExplosion
  203. };
  204. SpellData.projectileData.tonitro = {
  205. hostile = true,
  206. endHit = false,
  207. maxCasts = 1,
  208. coolDown = 0,
  209. speed = 400,
  210. range = 400,
  211. amplitude = 1.2,
  212. trailLength = 0.5,
  213. trailWidth = 0.15,
  214. color = Color3.new(0, 0.6, 1),
  215. shieldDamage = 20,
  216. castSound = castLightning,
  217. missSound = hitDefault,
  218. hitSound = hitDefault
  219. };
  220. SpellData.projectileData.depulso = {
  221. hostile = true,
  222. endHit = false,
  223. maxCasts = 1,
  224. coolDown = 0,
  225. speed = 250,
  226. range = 400,
  227. amplitude = 1,
  228. trailLength = 0.1,
  229. trailWidth = 0.2,
  230. color = Color3.new(0.8, 0, 1),
  231. shieldDamage = 0,
  232. castSound = castDefault,
  233. missSound = missDefault,
  234. hitSound = hitDefault
  235. };
  236. SpellData.projectileData.rictusempra = {
  237. hostile = true,
  238. endHit = false,
  239. maxCasts = 1,
  240. coolDown = 0,
  241. speed = 250,
  242. range = 400,
  243. amplitude = 0.4,
  244. trailLength = 0.1,
  245. trailWidth = 0.2,
  246. color = Color3.new(1, 0.5, 0.5),
  247. shieldDamage = 0,
  248. castSound = castDefault,
  249. missSound = missDefault,
  250. hitSound = hitDefault
  251. };
  252. SpellData.projectileData["everte statum"] = {
  253. hostile = true,
  254. endHit = false,
  255. maxCasts = 1,
  256. coolDown = 0,
  257. speed = 250,
  258. range = 400,
  259. amplitude = 0.4,
  260. trailLength = 0.1,
  261. trailWidth = 0.2,
  262. color = Color3.new(1, 0.7, 0.3),
  263. shieldDamage = 0,
  264. castSound = castDefault,
  265. missSound = missDefault,
  266. hitSound = hitDefault
  267. };
  268. SpellData.projectileData.flipendo = {
  269. hostile = true,
  270. endHit = false,
  271. maxCasts = 1,
  272. coolDown = 0,
  273. speed = 250,
  274. range = 400,
  275. amplitude = 0.4,
  276. trailLength = 0.1,
  277. trailWidth = 0.2,
  278. color = Color3.new(0, 0.6, 1),
  279. shieldDamage = 0,
  280. castSound = castDefault,
  281. missSound = missDefault,
  282. hitSound = hitDefault
  283. };
  284. SpellData.projectileData.episkey = {
  285. hostile = false,
  286. endHit = false,
  287. maxCasts = 3,
  288. coolDown = 0.3,
  289. speed = 60,
  290. range = 100,
  291. amplitude = 0.05,
  292. trailLength = 0.06,
  293. trailWidth = 0.1,
  294. color = Color3.new(1, 1, 0.2),
  295. shieldDamage = 0,
  296. castSound = castSoft,
  297. missSound = missDefault,
  298. hitSound = hitHeal
  299. };
  300. SpellData.projectileData["vulnera sanentur"] = {
  301. hostile = false,
  302. endHit = false,
  303. maxCasts = 1,
  304. coolDown = 0,
  305. speed = 60,
  306. range = 100,
  307. amplitude = 0.05,
  308. trailLength = 0.06,
  309. trailWidth = 0.1,
  310. color = Color3.new(1, 0.7, 0.3),
  311. shieldDamage = 0,
  312. castSound = castSoft,
  313. missSound = missDefault,
  314. hitSound = hitHeal
  315. };
  316. SpellData.projectileData.relashio = {
  317. hostile = true,
  318. endHit = false,
  319. maxCasts = 1,
  320. coolDown = 0,
  321. speed = 250,
  322. range = 400,
  323. amplitude = 0.4,
  324. trailLength = 0.1,
  325. trailWidth = 0.2,
  326. color = Color3.new(0.8, 0.5, 1),
  327. shieldDamage = 0,
  328. castSound = castDefault,
  329. missSound = missDefault,
  330. hitSound = hitDefault
  331. };
  332. SpellData.projectileData.rennervate = {
  333. hostile = false,
  334. endHit = false,
  335. maxCasts = 1,
  336. coolDown = 0,
  337. speed = 60,
  338. range = 400,
  339. amplitude = 0.1,
  340. trailLength = 0.06,
  341. trailWidth = 0.1,
  342. color = Color3.new(1, 0.3, 0.3),
  343. shieldDamage = 0,
  344. castSound = castSoft,
  345. missSound = missDefault,
  346. hitSound = hitHeal
  347. };
  348. SpellData.projectileData["carpe retractum"] = {
  349. hostile = true,
  350. endHit = false,
  351. maxCasts = 1,
  352. coolDown = 0,
  353. speed = 250,
  354. range = 400,
  355. amplitude = 0.3,
  356. trailLength = 0.1,
  357. trailWidth = 0.2,
  358. color = Color3.new(1, 0.3, 0),
  359. shieldDamage = 0,
  360. castSound = castDefault,
  361. missSound = missDefault,
  362. hitSound = hitDefault
  363. };
  364. SpellData.projectileData.deletrius = {
  365. hostile = true,
  366. endHit = false,
  367. maxCasts = 1,
  368. coolDown = 0.4,
  369. speed = 250,
  370. range = 400,
  371. amplitude = 1.2,
  372. trailLength = 0.15,
  373. trailWidth = 0.2,
  374. color = Color3.new(0.7, 0.2, 1),
  375. shieldDamage = 20,
  376. castSound = castLightning,
  377. missSound = hitDefault,
  378. hitSound = hitDefault
  379. };
  380. SpellData.projectileData.impedimenta = {
  381. hostile = true,
  382. endHit = false,
  383. maxCasts = 1,
  384. coolDown = 0,
  385. speed = 250,
  386. range = 400,
  387. amplitude = 0.6,
  388. trailLength = 0.1,
  389. trailWidth = 0.2,
  390. color = Color3.new(0, 0.2, 1),
  391. shieldDamage = 0,
  392. castSound = castDefault,
  393. missSound = missDefault,
  394. hitSound = hitDefault
  395. };
  396. SpellData.projectileData["locomotor wibbly"] = {
  397. hostile = true,
  398. endHit = false,
  399. maxCasts = 1,
  400. coolDown = 0,
  401. speed = 250,
  402. range = 400,
  403. amplitude = 0.6,
  404. trailLength = 0.1,
  405. trailWidth = 0.2,
  406. color = Color3.new(1, 0.6, 0),
  407. shieldDamage = 0,
  408. castSound = castDefault,
  409. missSound = missDefault,
  410. hitSound = hitDefault
  411. };
  412. SpellData.projectileData["alarte ascendare"] = {
  413. hostile = true,
  414. endHit = false,
  415. maxCasts = 1,
  416. coolDown = 0,
  417. speed = 250,
  418. range = 400,
  419. amplitude = 0.6,
  420. trailLength = 0.1,
  421. trailWidth = 0.2,
  422. color = Color3.new(1, 0.1, 0.1),
  423. shieldDamage = 20,
  424. castSound = castDefault,
  425. missSound = missDefault,
  426. hitSound = hitDefault
  427. };
  428. SpellData.projectileData.levicorpus = {
  429. hostile = true,
  430. endHit = false,
  431. maxCasts = 1,
  432. coolDown = 0,
  433. speed = 250,
  434. range = 400,
  435. amplitude = 0.6,
  436. trailLength = 0.1,
  437. trailWidth = 0.2,
  438. color = Color3.new(0.5, 1, 0.5),
  439. shieldDamage = 0,
  440. castSound = castDefault,
  441. missSound = missDefault,
  442. hitSound = hitDefault
  443. };
  444. SpellData.projectileData.liberacorpus = {
  445. hostile = false,
  446. endHit = false,
  447. maxCasts = 1,
  448. coolDown = 0,
  449. speed = 60,
  450. range = 100,
  451. amplitude = 0.2,
  452. trailLength = 0.06,
  453. trailWidth = 0.1,
  454. color = Color3.new(1, 1, 1),
  455. shieldDamage = 0,
  456. castSound = castSoft,
  457. missSound = missDefault,
  458. hitSound = hitHeal
  459. };
  460. SpellData.projectileData.duro = {
  461. hostile = true,
  462. endHit = false,
  463. maxCasts = 1,
  464. coolDown = 0,
  465. speed = 250,
  466. range = 400,
  467. amplitude = 0.6,
  468. trailLength = 0.1,
  469. trailWidth = 0.2,
  470. color = Color3.new(0, 0.4, 1),
  471. shieldDamage = 0,
  472. castSound = castDefault,
  473. missSound = missDefault,
  474. hitSound = hitDefault
  475. };
  476. SpellData.projectileData["finite incantatem"] = {
  477. hostile = false,
  478. endHit = false,
  479. maxCasts = 1,
  480. coolDown = 0,
  481. speed = 60,
  482. range = 400,
  483. amplitude = 0.1,
  484. trailLength = 0.06,
  485. trailWidth = 0.1,
  486. color = Color3.new(1, 0.3, 0.5),
  487. shieldDamage = 0,
  488. castSound = castSoft,
  489. missSound = missDefault,
  490. hitSound = hitHeal
  491. };
  492. SpellData.projectileData["petrificus totalus"] = {
  493. hostile = true,
  494. endHit = false,
  495. maxCasts = 1,
  496. coolDown = 0,
  497. speed = 250,
  498. range = 400,
  499. amplitude = 0.6,
  500. trailLength = 0.1,
  501. trailWidth = 0.2,
  502. color = Color3.new(0.2, 0.6, 1),
  503. shieldDamage = 0,
  504. castSound = castDefault,
  505. missSound = missDefault,
  506. hitSound = hitDefault
  507. };
  508. SpellData.projectileData.accio = {
  509. hostile = true,
  510. endHit = false,
  511. maxCasts = 1,
  512. coolDown = 0,
  513. speed = 250,
  514. range = 400,
  515. amplitude = 0.4,
  516. trailLength = 0.1,
  517. trailWidth = 0.2,
  518. color = Color3.new(0, 0.4, 1),
  519. shieldDamage = 0,
  520. castSound = castDefault,
  521. missSound = missNeutral,
  522. hitSound = missNeutral
  523. };
  524. SpellData.projectileData.obscuro = {
  525. hostile = true,
  526. endHit = false,
  527. maxCasts = 1,
  528. coolDown = 0,
  529. speed = 250,
  530. range = 400,
  531. amplitude = 0.4,
  532. trailLength = 0.1,
  533. trailWidth = 0.2,
  534. color = Color3.new(0, 0, 0),
  535. shieldDamage = 0,
  536. castSound = castDefault,
  537. missSound = missNeutral,
  538. hitSound = missNeutral
  539. };
  540. SpellData.projectileData.tarantallegra = {
  541. hostile = true,
  542. endHit = false,
  543. maxCasts = 1,
  544. coolDown = 0,
  545. speed = 250,
  546. range = 400,
  547. amplitude = 0.4,
  548. trailLength = 0.1,
  549. trailWidth = 0.2,
  550. color = Color3.new(1, 0.3, 1),
  551. shieldDamage = 0,
  552. castSound = castDefault,
  553. missSound = missNeutral,
  554. hitSound = missNeutral
  555. };
  556. SpellData.projectileData.confundo = {
  557. hostile = true,
  558. endHit = false,
  559. maxCasts = 1,
  560. coolDown = 0,
  561. speed = 250,
  562. range = 400,
  563. amplitude = 0.6,
  564. trailLength = 0.1,
  565. trailWidth = 0.2,
  566. color = Color3.new(0, 0.5, 1),
  567. shieldDamage = 0,
  568. castSound = castDefault,
  569. missSound = missNeutral,
  570. hitSound = missNeutral
  571. };
  572. SpellData.projectileData.silencio = {
  573. hostile = true,
  574. endHit = false,
  575. maxCasts = 1,
  576. coolDown = 0,
  577. speed = 250,
  578. range = 400,
  579. amplitude = 0.6,
  580. trailLength = 0.1,
  581. trailWidth = 0.2,
  582. color = Color3.new(0.2, 0.2, 1),
  583. shieldDamage = 0,
  584. castSound = castDefault,
  585. missSound = missNeutral,
  586. hitSound = missNeutral
  587. };
  588. SpellData.projectileData.obliviate = {
  589. hostile = true,
  590. endHit = false,
  591. maxCasts = 1,
  592. coolDown = 0,
  593. speed = 250,
  594. range = 400,
  595. amplitude = 0.6,
  596. trailLength = 0.1,
  597. trailWidth = 0.2,
  598. color = Color3.new(0.6, 1, 0.6),
  599. shieldDamage = 0,
  600. castSound = castDefault,
  601. missSound = missNeutral,
  602. hitSound = missNeutral
  603. };
  604. SpellData.projectileData.calvorio = {
  605. hostile = true,
  606. endHit = false,
  607. maxCasts = 1,
  608. coolDown = 0,
  609. speed = 250,
  610. range = 400,
  611. amplitude = 0.4,
  612. trailLength = 0.1,
  613. trailWidth = 0.2,
  614. color = Color3.new(1, 0.1, 0),
  615. shieldDamage = 0,
  616. castSound = castDefault,
  617. missSound = missNeutral,
  618. hitSound = missNeutral
  619. };
  620. SpellData.projectileData["engorgio skullus"] = {
  621. hostile = true,
  622. endHit = false,
  623. maxCasts = 1,
  624. coolDown = 0,
  625. speed = 250,
  626. range = 400,
  627. amplitude = 0.4,
  628. trailLength = 0.1,
  629. trailWidth = 0.2,
  630. color = Color3.new(0.4, 1, 0.4),
  631. shieldDamage = 0,
  632. castSound = castDefault,
  633. missSound = missNeutral,
  634. hitSound = missNeutral
  635. };
  636. SpellData.projectileData.sectumsempra = {
  637. hostile = true,
  638. endHit = false,
  639. maxCasts = 1,
  640. coolDown = 0.4,
  641. speed = 250,
  642. range = 400,
  643. amplitude = 0.8,
  644. trailLength = 0.15,
  645. trailWidth = 0.2,
  646. color = Color3.new(1, 1, 1),
  647. shieldDamage = 0,
  648. castSound = castDefault,
  649. missSound = missDefault,
  650. hitSound = hitDefault
  651. };
  652. SpellData.projectileData.defodio = {
  653. hostile = true,
  654. endHit = false,
  655. maxCasts = 1,
  656. coolDown = 0.4,
  657. speed = 250,
  658. range = 400,
  659. amplitude = 0.8,
  660. trailLength = 0.15,
  661. trailWidth = 0.225,
  662. color = Color3.new(1, 0.2, 0.2),
  663. shieldDamage = 20,
  664. castSound = castDefault,
  665. missSound = hitFire,
  666. hitSound = hitFire
  667. };
  668. SpellData.projectileData.crucio = {
  669. hostile = true,
  670. endHit = false,
  671. maxCasts = 1,
  672. coolDown = 0,
  673. speed = 250,
  674. range = 400,
  675. amplitude = 1.2,
  676. trailLength = 0.15,
  677. trailWidth = 0.2,
  678. color = Color3.new(1, 0.1, 0.1),
  679. shieldDamage = 20,
  680. castSound = castDefault,
  681. missSound = missNeutral,
  682. hitSound = missNeutral
  683. };
  684. SpellData.projectileData.incendio = {
  685. hostile = true,
  686. endHit = false,
  687. maxCasts = 1,
  688. coolDown = 0,
  689. speed = 150,
  690. range = 400,
  691. amplitude = 0.2,
  692. trailLength = 0.15,
  693. trailWidth = 0.6,
  694. color = Color3.new(1, 0.42, 0),
  695. shieldDamage = 20,
  696. castSound = castFire,
  697. missSound = hitFire,
  698. hitSound = hitFire
  699. };
  700. SpellData.projectileData.confringo = {
  701. hostile = true,
  702. endHit = false,
  703. maxCasts = 1,
  704. coolDown = 0.4,
  705. speed = 150,
  706. range = 400,
  707. amplitude = 0.2,
  708. trailLength = 0.15,
  709. trailWidth = 0.6,
  710. color = Color3.new(1, 0.42, 0),
  711. shieldDamage = 20,
  712. castSound = castFire,
  713. missSound = hitFire,
  714. hitSound = hitFire
  715. };
  716. SpellData.projectileData.glacius = {
  717. hostile = true,
  718. endHit = false,
  719. maxCasts = 1,
  720. coolDown = 0,
  721. speed = 250,
  722. range = 400,
  723. amplitude = 0.6,
  724. trailLength = 0.1,
  725. trailWidth = 0.2,
  726. color = Color3.new(0.3, 0.8, 1),
  727. shieldDamage = 0,
  728. castSound = castFrost,
  729. missSound = hitFrost,
  730. hitSound = hitFrost
  731. };
  732. SpellData.projectileData.incarcerous = {
  733. hostile = true,
  734. endHit = false,
  735. maxCasts = 1,
  736. coolDown = 0,
  737. speed = 250,
  738. range = 400,
  739. amplitude = 0.8,
  740. trailLength = 0.15,
  741. trailWidth = 0.2,
  742. color = Color3.new(1, 0.1, 0.1),
  743. shieldDamage = 0,
  744. castSound = castDefault,
  745. missSound = missDefault,
  746. hitSound = hitDefault
  747. };
  748. SpellData.projectileData.diminuendo = {
  749. hostile = true,
  750. endHit = false,
  751. maxCasts = 1,
  752. coolDown = 0,
  753. speed = 250,
  754. range = 400,
  755. amplitude = 0.6,
  756. trailLength = 0.1,
  757. trailWidth = 0.2,
  758. color = Color3.new(1, 1, 1),
  759. shieldDamage = 0,
  760. castSound = castDefault,
  761. missSound = missDefault,
  762. hitSound = hitDefault
  763. };
  764. SpellData.projectileData.diffindo = {
  765. hostile = true,
  766. endHit = false,
  767. maxCasts = 1,
  768. coolDown = 0,
  769. speed = 250,
  770. range = 400,
  771. amplitude = 0.6,
  772. trailLength = 0.1,
  773. trailWidth = 0.2,
  774. color = Color3.new(0.5, 1, 0.5),
  775. shieldDamage = 5,
  776. castSound = castDefault,
  777. missSound = missDefault,
  778. hitSound = missNeutral
  779. };
  780. SpellData.projectileData.melofors = {
  781. hostile = true,
  782. endHit = false,
  783. maxCasts = 1,
  784. coolDown = 0,
  785. speed = 250,
  786. range = 400,
  787. amplitude = 0.6,
  788. trailLength = 0.1,
  789. trailWidth = 0.2,
  790. color = Color3.new(1, 0.3, 0),
  791. shieldDamage = 0,
  792. castSound = castDefault,
  793. missSound = missNeutral,
  794. hitSound = missNeutral
  795. };
  796. SpellData.projectileData.baubillious = {
  797. hostile = true,
  798. endHit = false,
  799. maxCasts = 10,
  800. coolDown = 0.2,
  801. speed = 320,
  802. range = 400,
  803. amplitude = 1,
  804. trailLength = 0.3,
  805. trailWidth = 0.15,
  806. color = Color3.new(1, 1, 0.7),
  807. shieldDamage = 2,
  808. castSound = castDefault,
  809. missSound = missDefault,
  810. hitSound = hitDefault
  811. };
  812. SpellData.projectileData.verdimillious = {
  813. hostile = true,
  814. endHit = false,
  815. maxCasts = 3,
  816. coolDown = 0.3,
  817. speed = 250,
  818. range = 400,
  819. amplitude = 0.6,
  820. trailLength = 0.1,
  821. trailWidth = 0.2,
  822. color = Color3.new(0.3, 1, 0.3),
  823. shieldDamage = 6,
  824. castSound = castDefault,
  825. missSound = missDefault,
  826. hitSound = hitDefault
  827. };
  828. SpellData.projectileData.ebublio = {
  829. hostile = true,
  830. endHit = false,
  831. maxCasts = 1,
  832. coolDown = 0,
  833. speed = 250,
  834. range = 400,
  835. amplitude = 0.4,
  836. trailLength = 0.1,
  837. trailWidth = 0.2,
  838. color = Color3.new(1, 0.3, 1),
  839. shieldDamage = 0,
  840. castSound = castDefault,
  841. missSound = missNeutral,
  842. hitSound = missNeutral
  843. };
  844. SpellData.projectileData.morsmordre = {
  845. hostile = true,
  846. endHit = true,
  847. maxCasts = 0,
  848. coolDown = 0.2,
  849. speed = 250,
  850. range = 300,
  851. amplitude = 1,
  852. trailLength = 0.05,
  853. trailWidth = 0.3,
  854. color = Color3.new(0, 1, 0.4),
  855. shieldDamage = 0,
  856. castSound = castDefault,
  857. missSound = missDefault,
  858. hitSound = hitDefault
  859. };
  860. SpellData.projectileData.aboleo = {
  861. hostile = true,
  862. endHit = false,
  863. maxCasts = 3,
  864. coolDown = 0.2,
  865. speed = 200,
  866. range = 400,
  867. amplitude = 0.6,
  868. trailLength = 0.06,
  869. trailWidth = 0.2,
  870. color = Color3.new(0.2, 0.6, 1),
  871. shieldDamage = 34,
  872. castSound = castDefault,
  873. missSound = hitDefault,
  874. hitSound = hitDefault
  875. };
  876.  
  877. function GetWand()
  878. if char:FindFirstChild("Wand") then
  879. return char.Wand
  880. else
  881. return nil
  882. end
  883. end
  884.  
  885. function fireSpell(p15)
  886. local tool = GetWand()
  887.  
  888. local v19 = SpellData.projectileData[p15];
  889.  
  890. if v19.hostile then
  891. castAnim:Play(0.1, 1, 2);
  892. setAttackAnim();
  893. end;
  894.  
  895. local idk = game.Players.LocalPlayer.Character.RightHand.Position
  896. local MousePos = mouse.Hit.p;
  897.  
  898. local SpellID = tostring(plr.Name .. game.Workspace.DistributedGameTime);
  899. events.spellFired:FireServer({
  900. tool = "Wand",
  901. a = idk,
  902. b = MousePos,
  903. spellName = p15,
  904. id = SpellID
  905. })
  906. events.fireSpellLocal:Fire({
  907. a = idk,
  908. b = MousePos,
  909. spellName = p15,
  910. caster = plr,
  911. id = SpellID
  912. });
  913. end;
  914.  
  915. function returnSpell(boxtext)
  916. if SpellData.projectileData[boxtext.Text] then
  917. return boxtext.Text
  918. else
  919. return nil
  920. end
  921. end
  922.  
  923. UIS.InputBegan:Connect(function(input)
  924. local inputType = input.UserInputType
  925. if inputType == Enum.UserInputType.MouseButton1 then
  926. hold = true
  927. end
  928. end)
  929.  
  930. UIS.InputEnded:Connect(function(input)
  931. local inputType = input.UserInputType
  932. if inputType == Enum.UserInputType.MouseButton1 then
  933. hold = false
  934. end
  935. end)
  936.  
  937. while wait() do
  938. if hold == true then
  939. if UIS:IsKeyDown(Enum.KeyCode.LeftControl) then
  940. fireSpell(returnSpell(TextBox))
  941. end
  942. end
  943. end
Add Comment
Please, Sign In to add comment