Advertisement
WaverlyCoal

Untitled

Aug 7th, 2018
469
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.56 KB | None | 0 0
  1. --//Created by WaverlyCole
  2. player = game:service'Players'.LocalPlayer
  3. mouse = player:GetMouse()
  4. char = player.Character
  5. humanoid = char.Humanoid
  6. rootpart = char.HumanoidRootPart
  7. torso = char.Torso
  8.  
  9. char.Humanoid.MaxHealth=300
  10. wait()
  11. char.Humanoid.Health=300
  12. char.Humanoid.WalkSpeed=20
  13. --//Joints
  14. N=torso:FindFirstChild("Neck")
  15. RS=torso:FindFirstChild("Right Shoulder")
  16. LS=torso:FindFirstChild("Left Shoulder")
  17. RH=torso:FindFirstChild("Right Hip")
  18. LH=torso:FindFirstChild("Left Hip")
  19. RJ=rootpart:FindFirstChild("RootJoint")
  20. --//Default C0's
  21. NC0=CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  22. RSC0=CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  23. LSC0=CFrame.new(-1, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  24. RHC0=CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  25. LHC0=CFrame.new(-1, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  26. RJC0=CFrame.new(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  27. --//Cheats
  28. cframe = CFrame.new
  29. angle = CFrame.Angles
  30. radian = math.rad
  31. random = math.random
  32. --//Variables
  33. local idle,walk,fall,jump = false,false,false,false
  34. local jumpcheck = false
  35. local specialanim = nil
  36. local height = 1
  37. --//Functions
  38. local function Split(inputstr,sep)
  39. local t,i = {},1
  40. for str in string.gmatch(inputstr, "([^"..sep.."]+)") do
  41. t[i] = str
  42. i = i + 1
  43. end
  44. return t
  45. end
  46. local function weldBetween(a, b)
  47. local weld = Instance.new("ManualWeld")
  48. weld.Part0 = a
  49. weld.Part1 = b
  50. weld.C0 = CFrame.new()
  51. weld.C1 = b.CFrame:inverse() * a.CFrame
  52. weld.Parent = a
  53. return weld;
  54. end
  55. local getChar = function(part)
  56. if part.Parent:FindFirstChild('Humanoid') then
  57. return part.Parent
  58. elseif part.Parent.Parent:FindFirstChild('Humanoid') then
  59. return part.Parent.Parent
  60. else
  61. return nil
  62. end
  63. end
  64. local animate = function(joint,prop,cfrmz,alp)
  65. joint[prop]=joint[prop]:lerp(cfrmz,alp)
  66. end
  67. local keyDown = function(key)
  68. if key == 'q' then
  69. --
  70. end
  71. end
  72. --//Movement
  73. game:service'RunService'.RenderStepped:connect(function()
  74. if rootpart.Velocity.y < -1 and not idle then
  75. idle,walk,fall,jump = false,false,true,false
  76. elseif jumpcheck then
  77. idle,walk,fall,jump = false,false,false,true
  78. elseif humanoid.MoveDirection ~= Vector3.new(0,0,0) then
  79. idle,walk,fall,jump = false,true,false,false
  80. elseif humanoid.MoveDirection == Vector3.new(0,0,0) then
  81. idle,walk,fall,jump = true,false,false,false
  82. end
  83. end)
  84. humanoid.StateChanged:connect(function(state)
  85. if state == Enum.HumanoidStateType.Jumping then
  86. jumpcheck = true
  87. else
  88. jumpcheck = false
  89. end
  90. end)
  91. --//Created by WaverlyCole
  92. --//Animate
  93. char.Animate.Disabled = true
  94. humanoid.Animator:Destroy()
  95. local playAnimation = coroutine.wrap(function()
  96. while true do
  97. game:service'RunService'.RenderStepped:wait()
  98. if specialanim then
  99. specialanim()
  100. elseif idle then
  101. animate(N,'C0',NC0*cframe(0,0,0)*angle(radian(math.sin(tick()*3)),radian(0),radian(-60)),0.3)
  102. animate(RS,'C0',RSC0*cframe(.1,0,0)*angle(radian(math.sin(tick())*5),radian(0),radian(60 + math.sin(tick()*2))*-5),0.3)
  103. animate(LS,'C0',LSC0*cframe(0,0,0)*angle(radian(math.sin(tick())*5),radian(0),radian(10)),0.3)
  104. animate(RH,'C0',RHC0*cframe(0,.1 + math.sin(tick()*3)/20,-.1)*angle(radian(0),radian(-30),radian(0)),0.3)
  105. animate(LH,'C0',LHC0*cframe(0,.1 + math.sin(tick()*3)/20,.1)*angle(radian(-5),radian(-15),radian(0)),0.3)
  106. animate(RJ,'C0',RJC0*cframe(0,0,-.1 + math.sin(tick()*3)/-20)*angle(radian(0),radian(0),radian(70)),0.3)
  107. elseif walk then
  108. animate(N,'C0',NC0*cframe(0,0,0)*angle(radian(-3),radian(0),radian(0)),0.3)
  109. animate(RS,'C0',RSC0*cframe(0,0,0)*angle(radian(math.sin(tick()*3)),radian(20 + math.sin(tick()*3)),radian(70 + math.sin(tick()*3)*2)),0.3)
  110. animate(LS,'C0',LSC0*cframe(0,0,0)*angle(radian(0),radian(math.sin(tick()*2)*5),radian(30 + math.sin(tick()*2)*5)),0.3)
  111. animate(RH,'C0',RHC0*cframe(0,0,0)*angle(radian(0),radian(0),radian(math.sin(tick()*(char.Humanoid.WalkSpeed/2))*40)),0.3)
  112. animate(LH,'C0',LHC0*cframe(0,0,0)*angle(radian(0),radian(0),radian(math.sin(tick()*-(char.Humanoid.WalkSpeed/2))*-40)),0.3)
  113. animate(RJ,'C0',RJC0*cframe(0,0,0)*angle(radian(5),radian(0),radian(0)),0.3)
  114. elseif fall then
  115. animate(N,'C0',NC0*cframe(0,0,0)*angle(radian(0),radian(0),radian(0)),0.3)
  116. animate(RS,'C0',RSC0*cframe(0,0,0)*angle(radian(0),radian(0),radian(0)),0.3)
  117. animate(LS,'C0',LSC0*cframe(0,0,0)*angle(radian(0),radian(0),radian(0)),0.3)
  118. animate(RH,'C0',RHC0*cframe(0,0,0)*angle(radian(0),radian(0),radian(0)),0.3)
  119. animate(LH,'C0',LHC0*cframe(0,0,0)*angle(radian(0),radian(0),radian(0)),0.3)
  120. animate(RJ,'C0',RJC0*cframe(0,0,0)*angle(radian(0),radian(0),radian(0)),0.3)
  121. elseif jump then
  122. animate(N,'C0',NC0*cframe(0,0,0)*angle(radian(0),radian(0),radian(0)),0.3)
  123. animate(RS,'C0',RSC0*cframe(0,0,0)*angle(radian(0),radian(0),radian(0)),0.3)
  124. animate(LS,'C0',LSC0*cframe(0,0,0)*angle(radian(0),radian(0),radian(0)),0.3)
  125. animate(RH,'C0',RHC0*cframe(0,0,0)*angle(radian(0),radian(0),radian(0)),0.3)
  126. animate(LH,'C0',LHC0*cframe(0,0,0)*angle(radian(0),radian(0),radian(0)),0.3)
  127. animate(RJ,'C0',RJC0*cframe(0,0,0)*angle(radian(0),radian(0),radian(0)),0.3)
  128. end
  129. end
  130. end)
  131. wand = Instance.new('Part')
  132. wand.Name = 'Wand'
  133. wandmesh = Instance.new('SpecialMesh',wand)
  134. wandmesh.MeshId = 'http://www.roblox.com/asset?id=69886132'
  135. wandmesh.Scale = Vector3.new(1,1,1)
  136. wandmesh.TextureId = 'http://www.roblox.com/asset/?id=31656155'
  137. wand.Size = Vector3.new(.4,.4,2)
  138. wand.CanCollide=false
  139. wand.CFrame = char['Right Arm'].CFrame * CFrame.Angles(0,math.rad(180),0) * CFrame.new(0,-1,.8)
  140. wand.Parent = char
  141. local weld = weldBetween(wand,char['Right Arm'])
  142. WANDC0 = weld.C0
  143. WANDWELD = weld
  144. sound1 = Instance.new('Sound',wand)
  145. sound1.SoundId = 'http://www.roblox.com/asset/?id=193316310'
  146. sound1.Volume = 2
  147. playAnimation()
  148. spawn(function()
  149. local pointer = Instance.new('Part')
  150. pointer.Size = Vector3.new(.5,.5,.5)
  151. pointer.CanCollide=false
  152. pointer.Anchored=true
  153. pointer.Material = 'Neon'
  154. pointer.TopSurface = 10
  155. pointer.BottomSurface = 10
  156. pointer.BrickColor = BrickColor.new('White')
  157. pointer.Shape = 'Ball'
  158. pointer.Parent = char
  159. game:service'RunService'.RenderStepped:connect(function()
  160. pointer.CFrame = mouse.Hit
  161. end)
  162. end)
  163. local spellAnimation = function()
  164. spawn(function()
  165. specialanim = function()
  166. animate(RS,'C0',RSC0*cframe(0,0,0)*angle(radian(-30),radian(0),radian(0)),0.3)
  167. if idle then
  168. animate(N,'C0',NC0*cframe(0,0,0)*angle(radian(math.sin(tick()*3)),radian(0),radian(-60)),0.3)
  169. animate(LS,'C0',LSC0*cframe(0,0,0)*angle(radian(math.sin(tick())*5),radian(0),radian(10)),0.3)
  170. animate(RH,'C0',RHC0*cframe(0,.1 + math.sin(tick()*3)/20,-.1)*angle(radian(0),radian(-30),radian(0)),0.3)
  171. animate(LH,'C0',LHC0*cframe(0,.1 + math.sin(tick()*3)/20,.1)*angle(radian(-5),radian(-15),radian(0)),0.3)
  172. animate(RJ,'C0',RJC0*cframe(0,0,-.1 + math.sin(tick()*3)/-20)*angle(radian(0),radian(0),radian(70)),0.3)
  173. else
  174. animate(N,'C0',NC0*cframe(0,0,0)*angle(radian(-3),radian(0),radian(0)),0.3)
  175. animate(LS,'C0',LSC0*cframe(0,0,0)*angle(radian(0),radian(math.sin(tick()*2)*5),radian(30 + math.sin(tick()*2)*5)),0.3)
  176. animate(RH,'C0',RHC0*cframe(0,0,0)*angle(radian(0),radian(0),radian(math.sin(tick()*(char.Humanoid.WalkSpeed/2))*40)),0.3)
  177. animate(LH,'C0',LHC0*cframe(0,0,0)*angle(radian(0),radian(0),radian(math.sin(tick()*-(char.Humanoid.WalkSpeed/2))*-40)),0.3)
  178. animate(RJ,'C0',RJC0*cframe(0,0,0)*angle(radian(5),radian(0),radian(0)),0.3)
  179. end
  180. end
  181. wait(.1)
  182. specialanim = function()
  183. animate(RS,'C0',RSC0*cframe(0,0,0)*angle(radian(-20),radian(20),radian(90)),0.3)
  184. if idle then
  185. animate(N,'C0',NC0*cframe(0,0,0)*angle(radian(math.sin(tick()*3)),radian(0),radian(-60)),0.3)
  186. animate(LS,'C0',LSC0*cframe(0,0,0)*angle(radian(math.sin(tick())*5),radian(0),radian(10)),0.3)
  187. animate(RH,'C0',RHC0*cframe(0,.1 + math.sin(tick()*3)/20,-.1)*angle(radian(0),radian(-30),radian(0)),0.3)
  188. animate(LH,'C0',LHC0*cframe(0,.1 + math.sin(tick()*3)/20,.1)*angle(radian(-5),radian(-15),radian(0)),0.3)
  189. animate(RJ,'C0',RJC0*cframe(0,0,-.1 + math.sin(tick()*3)/-20)*angle(radian(0),radian(0),radian(70)),0.3)
  190. else
  191. animate(N,'C0',NC0*cframe(0,0,0)*angle(radian(-3),radian(0),radian(0)),0.3)
  192. animate(LS,'C0',LSC0*cframe(0,0,0)*angle(radian(0),radian(math.sin(tick()*2)*5),radian(30 + math.sin(tick()*2)*5)),0.3)
  193. animate(RH,'C0',RHC0*cframe(0,0,0)*angle(radian(0),radian(0),radian(math.sin(tick()*(char.Humanoid.WalkSpeed/2))*40)),0.3)
  194. animate(LH,'C0',LHC0*cframe(0,0,0)*angle(radian(0),radian(0),radian(math.sin(tick()*-(char.Humanoid.WalkSpeed/2))*-40)),0.3)
  195. animate(RJ,'C0',RJC0*cframe(0,0,0)*angle(radian(5),radian(0),radian(0)),0.3)
  196. end
  197. end
  198. wait(.5)
  199. specialanim = nil
  200. end)
  201. end
  202. local createSpell = function(speed,color,sound,spread,instant)
  203. if instant then
  204. return Instance.new'Part',mouse.hit
  205. end
  206. local hitpart = nil
  207. local connectPoints = function(effect,core,point1,point2,color)
  208. local spellTrail = Instance.new('Part')
  209. spellTrail.BrickColor = BrickColor.new(color)
  210. spellTrail.TopSurface = 10
  211. spellTrail.BottomSurface = 10
  212. spellTrail.CanCollide = false
  213. spellTrail.Anchored = true
  214. spellTrail.Transparency = .3
  215. spellTrail.Material = 'Neon'
  216. local magnitude = (point1.p - point2.p).magnitude
  217. local ray = Ray.new(point1.p,(point2.p - point1.p).unit*magnitude)
  218. local part,pos,normal = workspace:FindPartOnRayWithIgnoreList(ray,char:GetChildren(),false,true)
  219. if part then
  220. hitpart = part
  221. end
  222. if part and part.Name ~= 'Base' then
  223. magnitude = (point1.p - part.CFrame.p).magnitude
  224. spellTrail.Size = Vector3.new(.7,.7,magnitude)
  225. spellTrail.CFrame = CFrame.new(point1.p,part.CFrame.p) * CFrame.new(0,0,-magnitude/2)
  226. else
  227. magnitude = (point1.p - point2.p).magnitude
  228. spellTrail.Size = Vector3.new(.7,.7,magnitude)
  229. spellTrail.CFrame = CFrame.new(point1.p,point2.p) * CFrame.new(0,0,-magnitude/2)
  230. end
  231. local lockcframe = spellTrail.CFrame
  232. spellTrail.Parent = core
  233. local centerTrail = spellTrail:Clone()
  234. centerTrail.BrickColor = BrickColor.new('White')
  235. centerTrail.Size = Vector3.new(.2,.2,magnitude)
  236. centerTrail.CFrame = spellTrail.CFrame
  237. centerTrail.Transparency = 0
  238. centerTrail.Parent = spellTrail
  239. effect.CFrame = spellTrail.CFrame * CFrame.new(0,0,-magnitude/2)
  240. spawn(function()
  241. while spellTrail.Parent do
  242. spellTrail.Transparency = spellTrail.Transparency + .05
  243. centerTrail.Transparency = centerTrail.Transparency + .07
  244. spellTrail.Size = Vector3.new(spellTrail.Size.X-.04,spellTrail.Size.Y-.04,magnitude)
  245. centerTrail.Size = Vector3.new(centerTrail.Size.X-.01,centerTrail.Size.Y-.01,magnitude)
  246. spellTrail.CFrame = lockcframe
  247. centerTrail.CFrame = lockcframe
  248. game:service'RunService'.RenderStepped:wait()
  249. end
  250. end)
  251. spawn(function()
  252. wait(.2)
  253. spellTrail:Destroy()
  254. end)
  255. end
  256. sound:Play()
  257. local hit = mouse.Hit
  258. local spellCore = Instance.new('Part')
  259. spellCore.Size = Vector3.new(1,1,1)
  260. spellCore.CanCollide = false
  261. spellCore.Anchored = true
  262. spellCore.Transparency = 1
  263. spellCore.CFrame = CFrame.new(wand.CFrame.p,hit.p)
  264. spellCore.Parent=char
  265. local spellEffect = Instance.new('Part')
  266. spellEffect.BrickColor = BrickColor.new(color)
  267. spellEffect.Size = Vector3.new(.8,.8,.8)
  268. spellEffect.Material = 'Neon'
  269. spellEffect.Shape = 'Ball'
  270. spellEffect.TopSurface = 10
  271. spellEffect.BottomSurface = 10
  272. spellEffect.CanCollide = false
  273. spellEffect.Anchored = true
  274. spellEffect.CFrame = CFrame.new(wand.CFrame*CFrame.new(0,0,1).p,hit.p)
  275. spellEffect.Parent=char
  276. local light = Instance.new('PointLight',spellEffect)
  277. light.Color = BrickColor.new(color).Color
  278. light.Brightness = 3
  279. light.Range = 6
  280. if spellname == 'confringo' then
  281. Instance.new('Fire',spellEffect)
  282. end
  283. spawn(function()
  284. local lastpos = nil
  285. local follow = false
  286. while hitpart == nil do
  287. follow = not follow
  288. local pos1 = wand.CFrame*CFrame.new(0,0,1)
  289. if lastpos then
  290. pos1 = lastpos
  291. end
  292. game:service'RunService'.RenderStepped:wait()
  293. local pos2 = spellCore.CFrame*CFrame.new(0,0,1)
  294. if not follow then
  295. local min,max = -.5,.5
  296. if spread then
  297. min,max=-spread,spread
  298. end
  299. local n1 = min+(math.random()*(max-min))
  300. local n2 = min+(math.random()*(max-min))
  301. --local n3 = min+(math.random()*(max-min))
  302. pos2 = spellCore.CFrame * CFrame.new(n1,n2,0)
  303. else
  304. game:service'RunService'.RenderStepped:wait()
  305. end
  306. lastpos = pos2
  307. connectPoints(spellEffect,spellCore,pos1,pos2,color)
  308. end
  309. end)
  310. while hitpart == nil do
  311. spellCore.CFrame = spellCore.CFrame * CFrame.new(0,0,-speed)
  312. game:service'RunService'.RenderStepped:wait()
  313. end
  314. spawn(function()
  315. local particle = Instance.new('ParticleEmitter',hitpart)
  316. particle.LightEmission = 1
  317. particle.LightInfluence = 0
  318. particle.Size = NumberSequence.new(.1)
  319. particle.Texture = 'rbxassetid://134342987'
  320. particle.Color = ColorSequence.new(BrickColor.new(color).Color)
  321. --particle.LockedToPart = true
  322. particle.EmissionDirection = 'Front'
  323. particle.Lifetime = NumberRange.new(2)
  324. particle.Rate = 500
  325. particle.SpreadAngle = Vector2.new(90,90)
  326. wait(.2)
  327. spellEffect:Destroy()
  328. wait(.2)
  329. particle.Enabled = false
  330. end)
  331. return hitpart,spellCore.CFrame or nil,spellCore.CFrame
  332. end
  333. --//Created by WaverlyCole
  334. spellname = ''
  335. spellpower = 0
  336. player.Chatted:connect(function(msg)
  337. local args = Split(msg,' ')
  338. spellname = args[1]
  339. spellpower = 1
  340. if args[2] == 'maxima' then
  341. spellpower = 2
  342. end
  343. end)
  344. mouse.Button1Down:connect(function()
  345. if spellname == 'bombarda' then
  346. spellname = ''
  347. spellAnimation()
  348. wait(.2)
  349. local hit,endcframe = createSpell(3,'Persimmon',sound1,2)
  350. local explosion = Instance.new('Explosion')
  351. explosion.Position = endcframe.p
  352. explosion.BlastRadius = 4
  353. if spellpower == 2 then
  354. explosion.BlastRadius = 20
  355. end
  356. explosion.Parent=workspace
  357. spellpower = 0
  358. elseif spellname == 'nako' then
  359. spellname = ''
  360. spellAnimation()
  361. wait(.2)
  362. local hit,endcframe = createSpell(3,'Brick yellow',sound1)
  363. local human = getChar(hit)
  364. if human then
  365. pcall(function()
  366. human:FindFirstChild('Pants'):Destroy()
  367. human:FindFirstChild('Shirt'):Destroy()
  368. end)
  369. end
  370. spellpower = 0
  371. elseif spellname == 'confringo' then
  372. spellname = ''
  373. spellAnimation()
  374. wait(.2)
  375. local hit,endcframe = createSpell(3,'Bright red',sound1)
  376. local human = getChar(hit)
  377. if human then
  378. pcall(function()
  379. Instance.new('Fire',human.Head)
  380. while wait(.01) do
  381. human.Humanoid.Health = human.Humanoid.Health - 1
  382. if spellpower == 2 then
  383. human.Humanoid.Health = human.Humanoid.Health - 1
  384. end
  385. end
  386. end)
  387. end
  388. spellpower = 0
  389. elseif spellname == 'impedimenta' then
  390. spellname = ''
  391. spellAnimation()
  392. wait(.2)
  393. local hit,endcframe = createSpell(3,'Salmon',sound1)
  394. local human = getChar(hit)
  395. if human then
  396. for i = 1,500 do
  397. human.Humanoid.PlatformStand = true
  398. human.Humanoid.JumpPower = 0
  399. wait()
  400. end
  401. end
  402. spellpower = 0
  403. elseif spellname == 'episky' then
  404. spellname = ''
  405. spellAnimation()
  406. wait(.2)
  407. local hit,endcframe = createSpell(3,'Lime green',sound1)
  408. local human = getChar(hit)
  409. if human then
  410. pcall(function()
  411. if spellpower == 2 then
  412. human.Humanoid.Health = human.Humanoid.MaxHealth
  413. else
  414. for i = 1,50 do
  415. wait()
  416. human.Humanoid.Health = human.Humanoid.Health + 1
  417. end
  418. end
  419. end)
  420. end
  421. spellpower = 0
  422. elseif spellname == 'accio' then
  423. spellname = ''
  424. spellAnimation()
  425. wait(.2)
  426. local speed = 3
  427. if spellpower == 2 then
  428. speed = 15
  429. end
  430. local hit,endcframe = createSpell(speed,'Lapis',sound1)
  431. if hit.Name == 'Base' then return end
  432. hit.Anchored = true
  433. repeat
  434. hit.CFrame = CFrame.new(hit.CFrame.p,wand.CFrame.p) * CFrame.new(0,0,-1)
  435. wait()
  436. until (hit.CFrame.p - wand.CFrame.p).magnitude < 10
  437. hit.Anchored = false
  438. spellpower = 0
  439. elseif spellname == 'colloshoo' then
  440. spellname = ''
  441. spellAnimation()
  442. wait(.2)
  443. local hit,endcframe = createSpell(3,'White',sound1)
  444. local human = getChar(hit)
  445. if human then
  446. pcall(function()
  447. human['Left Leg'].Anchored = true
  448. human['Right Leg'].Anchored = true
  449. end)
  450. end
  451. spellpower = 0
  452. elseif spellname == 'deletrius' then
  453. spellname = ''
  454. spellAnimation()
  455. wait(.2)
  456. local speed = 5
  457. if spellpower == 2 then
  458. speed = 6
  459. end
  460. local hit,endcframe = createSpell(speed,'Really red',sound1)
  461. if hit.Name ~= 'Base' then hit:Destroy() end
  462. spellpower = 0
  463. elseif spellname == 'stupefy' then
  464. spellname = ''
  465. spellAnimation()
  466. wait(.2)
  467. local speed = 5
  468. if spellpower == 2 then
  469. speed = 6
  470. end
  471. local hit,endcframe = createSpell(speed,'Really red',sound1)
  472. local human = getChar(hit)
  473. if human then
  474. human.Humanoid.Health = human.Humanoid.Health - 20
  475. human.Humanoid.PlatformStand = true
  476. local force = Instance.new('BodyForce',human.HumanoidRootPart)
  477. local power = 3000 * spellpower
  478. force.Force = CFrame.new(wand.CFrame.p,hit.CFrame.p).lookVector *power + Vector3.new(0,4000 + 500*spellpower,0)
  479. wait(.5)
  480. force:Destroy()
  481. wait(3)
  482. hit.Parent.Humanoid.PlatformStand = false
  483. end
  484. spellpower = 0
  485. elseif spellname == 'expelliarmus' then
  486. spellname = ''
  487. spellAnimation()
  488. wait(.2)
  489. local hit,endcframe = createSpell(5,'Really red',sound1)
  490. local human = getChar(hit)
  491. if human then
  492. pcall(function()
  493. for i,v in pairs(human:children()) do
  494. if v.ClassName == 'Tool' or v.ClassName == 'Hopperbin' then
  495. v.Parent=workspace
  496. if v.Handle then
  497. local force = Instance.new('BodyForce',v.Handle)
  498. force.Force = CFrame.new(v.Handle.CFrame.p,char.Torso.CFrame.p).lookVector*500
  499. wait(.1)
  500. force:Destroy()
  501. end
  502. end
  503. end
  504. end)
  505. end
  506. spellpower = 0
  507. elseif spellname == 'calvario' then
  508. spellname = ''
  509. spellAnimation()
  510. wait(.2)
  511. local hit,endcframe = createSpell(3,'Light red',sound1)
  512. local human = getChar(hit)
  513. if human then
  514. pcall(function()
  515. for i,v in pairs(human:children()) do
  516. if v.ClassName == "Accessory" then
  517. v.Handle.Name = 'rekt'
  518. v.Parent=workspace
  519. end
  520. end
  521. end)
  522. end
  523. spellpower = 0
  524. elseif spellname == 'aguamente' then
  525. spellname = ''
  526. spellAnimation()
  527. wait(.2)
  528. local hit,endcframe = createSpell(3,'Medium blue',sound1)
  529. if spellpower == 1 then
  530. workspace.Terrain:FillBlock(endcframe,Vector3.new(4,2,4),'Water')
  531. else
  532. workspace.Terrain:FillBlock(endcframe,Vector3.new(15,3,15),'Water')
  533. end
  534. spellpower = 0
  535. elseif spellname == 'testspell' then
  536. spellAnimation()
  537. wait(.2)
  538. local hit,endcframe = createSpell(3,'White',sound1)
  539. --spellname,spellpower = '',0
  540. elseif spellname == 'appa' then
  541. spellname = ''
  542. spellAnimation()
  543. wait(.2)
  544. local hit,endcframe = createSpell(8,'Cyan',sound1)
  545. player.Character.Torso.CFrame = endcframe
  546. spellpower = 0
  547. elseif spellname == 'protego' then
  548. spellname = ''
  549. spellAnimation()
  550. --wait(.2)
  551. local hit,endcframe = createSpell(10,'Lime green',sound1,1,true)
  552. local p = Instance.new'Part'
  553. p.Size = Vector3.new(15,15,3)
  554. p.CanCollide = true
  555. p.Material = 'Neon'
  556. p.Anchored = true
  557. p.Transparency = .5
  558. p.BrickColor = BrickColor.new'Cyan'
  559. p.CFrame = CFrame.new(player.Character.Torso.CFrame.p,endcframe.p) * CFrame.new(0,0,-7)
  560. p.Parent = workspace
  561. while p.Parent and p.Transparency <= .9 do
  562. p.CFrame = p.CFrame * CFrame.new(0,0,-.3)
  563. game:service'RunService'.RenderStepped:wait()
  564. p.Transparency = p.Transparency + .01
  565. end
  566. p:Destroy()
  567. spellpower = 0
  568. end
  569. end)
  570. --//Created by WaverlyCole
  571. mouse.KeyDown:connect(keyDown)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement