joe201501

Sunny Milk (WIP)

Aug 21st, 2018
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 59.76 KB | None | 0 0
  1. --[[KillerDarkness0105's/Codex#6685 Touhou magic script]]--
  2.  
  3.  
  4.  
  5. Player=game:GetService("Players").LocalPlayer
  6. Character=Player.Character
  7. PlayerGui=Player.PlayerGui
  8. Backpack=Player.Backpack
  9. Torso=Character.Torso
  10. Head=Character.Head
  11. Humanoid=Character.Humanoid
  12. LeftArm=Character["Left Arm"]
  13. LeftLeg=Character["Left Leg"]
  14. RightArm=Character["Right Arm"]
  15. RightLeg=Character["Right Leg"]
  16. LS=Torso["Left Shoulder"]
  17. LH=Torso["Left Hip"]
  18. RS=Torso["Right Shoulder"]
  19. RH=Torso["Right Hip"]
  20. Face = Head.face
  21. Neck=Torso.Neck
  22. it=Instance.new
  23. attacktype=1
  24. attacktype2=1
  25. vt=Vector3.new
  26. cf=CFrame.new
  27. cn=CFrame.new
  28. euler=CFrame.fromEulerAnglesXYZ
  29. angles=CFrame.Angles
  30. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  31. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  32. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  33. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  34. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  35. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  36. RootPart=Character.HumanoidRootPart
  37. RootJoint=RootPart.RootJoint
  38. RootCF=euler(-1.57,0,3.14)
  39. attack = false
  40. attackdebounce = false
  41. trispeed=.2
  42. attackmode='none'
  43. local idle=0
  44. local Anim="Idle"
  45. stance = false
  46. local ff = 2
  47. noleg = false
  48. evadecooldown = false
  49. Humanoid.Animator.Parent = nil
  50. equip = false
  51. local Effects = {}
  52. attackspeed = 0.14
  53. df = false
  54. Swing = 1
  55. local sine = 0
  56. local change = 1
  57. local val = 0
  58. magic = false
  59. cam = workspace.CurrentCamera
  60. deb = game:GetService("Debris")
  61. RbxUtility = LoadLibrary("RbxUtility")
  62. Create = RbxUtility.Create
  63. Humanoid.WalkSpeed = 32
  64. Humanoid.JumpPower = 76
  65. local g ="Cool yellow"
  66. local r ="Bright yellow"
  67. player = game.Players.LocalPlayer
  68. chara = player.Character
  69. mouse = nil
  70.  
  71.  
  72.  
  73.  
  74.  
  75. music = Instance.new("Sound",Torso) -- change to Character for global music --Change to Torso for non-global music. You may wanna leave this at torso tho...
  76. music.Volume = 0.5
  77. music.TimePosition = 0
  78. music.Pitch = 1
  79. if Player.Name == "joe201501" then
  80. music.SoundId = "rbxassetid://295861420"--576413172 --music2 = 1117522463 --music3 = 903651242 --music4 = 611389938 -- 541377118 490561591
  81. else
  82. music.SoundId = "rbxassetid://803364705"--576413172 --music2 = 1117522463 --music3 = 903651242 --music4 = 611389938 -- 541377118 490561591
  83. end
  84. music.Looped = true
  85. music:Play()
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93. local handee = Instance.new("Part")
  94. handee.Parent = Character
  95. handee.Size = Vector3.new(.2,.2,.2)
  96. handee.Archivable = true
  97. handee.Transparency = 1
  98. handee.CanCollide = false
  99. handee.BrickColor = BrickColor.new("Cyan")
  100. handee.Material = "Neon"
  101. local handeeweld = Instance.new("Weld")
  102. handeeweld.Parent = handee
  103. handeeweld.Part0 = RightArm
  104. handeeweld.Part1 = handee
  105. handeeweld.C1 = CFrame.new(0, 0.97, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  106. handeeweld.Part0 = RightArm
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119. so = function(id,par,vol,pit)
  120. coroutine.resume(coroutine.create(function()
  121. local sou = Instance.new("Sound",par or workspace)
  122. sou.Volume=vol
  123. sou.Pitch=pit or 1
  124. sou.SoundId=id
  125. swait()
  126. sou:play()
  127. game:GetService("Debris"):AddItem(sou,8)
  128. end))
  129. end
  130.  
  131. --save shoulders
  132. RSH, LSH=nil, nil
  133. --welds
  134. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  135. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  136. LH=Torso["Left Hip"]
  137. RH=Torso["Right Hip"]
  138. TorsoColor=Torso.BrickColor
  139. function NoOutline(Part)
  140. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  141. end
  142. player=Player
  143. ch=Character
  144. RSH=ch.Torso["Right Shoulder"]
  145. LSH=ch.Torso["Left Shoulder"]
  146. --
  147. RSH.Parent=nil
  148. LSH.Parent=nil
  149. --
  150. RW.Name="Right Shoulder"
  151. RW.Part0=ch.Torso
  152. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  153. RW.C1=cf(0, 0.5, 0)
  154. RW.Part1=ch["Right Arm"]
  155. RW.Parent=ch.Torso
  156. --
  157. LW.Name="Left Shoulder"
  158. LW.Part0=ch.Torso
  159. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  160. LW.C1=cf(0, 0.5, 0)
  161. LW.Part1=ch["Left Arm"]
  162. LW.Parent=ch.Torso
  163.  
  164.  
  165. newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
  166. local wld = Instance.new("Weld", wp1)
  167. wld.Part0 = wp0
  168. wld.Part1 = wp1
  169. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  170. end
  171.  
  172.  
  173. newWeld(RootPart, Torso, 0, -1, 0)
  174. Torso.Weld.C1 = CFrame.new(0, -1, 0)
  175. newWeld(Torso, LeftLeg, -0.5, -1, 0)
  176. LeftLeg.Weld.C1 = CFrame.new(0, 1, 0)
  177. newWeld(Torso, RightLeg, 0.5, -1, 0)
  178. RightLeg.Weld.C1 = CFrame.new(0, 1, 0)
  179.  
  180. Player=game:GetService('Players').LocalPlayer
  181. Character=Player.Character
  182. mouse=Player:GetMouse()
  183. m=Instance.new('Model',Character)
  184.  
  185.  
  186. local function weldBetween(a, b)
  187. local weldd = Instance.new("ManualWeld")
  188. weldd.Part0 = a
  189. weldd.Part1 = b
  190. weldd.C0 = CFrame.new()
  191. weldd.C1 = b.CFrame:inverse() * a.CFrame
  192. weldd.Parent = a
  193. return weldd
  194. end
  195.  
  196. ArtificialHB = Instance.new("BindableEvent", script)
  197. ArtificialHB.Name = "Heartbeat"
  198.  
  199. script:WaitForChild("Heartbeat")
  200.  
  201. frame = 1 / 60
  202. tf = 0
  203. allowframeloss = false
  204. tossremainder = false
  205. lastframe = tick()
  206. script.Heartbeat:Fire()
  207. game:GetService("RunService").Heartbeat:connect(function(s, p)
  208. tf = tf + s
  209. if tf >= frame then
  210. if allowframeloss then
  211. script.Heartbeat:Fire()
  212. lastframe = tick()
  213. else
  214. for i = 1, math.floor(tf / frame) do
  215. script.Heartbeat:Fire()
  216. end
  217. lastframe = tick()
  218. end
  219. if tossremainder then
  220. tf = 0
  221. else
  222. tf = tf - frame * math.floor(tf / frame)
  223. end
  224. end
  225. end)
  226.  
  227. function swait(num)
  228. if num == 0 or num == nil then
  229. ArtificialHB.Event:wait()
  230. else
  231. for i = 0, num do
  232. ArtificialHB.Event:wait()
  233. end
  234. end
  235. end
  236.  
  237.  
  238.  
  239. function RemoveOutlines(part)
  240. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  241. end
  242.  
  243.  
  244. part = function(formfactor, parent, reflectance, transparency, brickcolor, name, size)
  245. local fp = it("Part")
  246. fp.formFactor = formfactor
  247. fp.Parent = parent
  248. fp.Reflectance = reflectance
  249. fp.Transparency = transparency
  250. fp.CanCollide = false
  251. fp.Locked = true
  252. fp.BrickColor = brickcolor
  253. fp.Name = name
  254. fp.Size = size
  255. fp.Position = Torso.Position
  256. NoOutline(fp)
  257. if fp.BrickColor == BrickColor.new("Bright yellow") then
  258. fp.Material = "Neon"
  259. else
  260. if fp.BrickColor == BrickColor.new("Fossil") then
  261. fp.BrickColor = BrickColor.new("Bright yellow")
  262. fp.Material = "Neon"
  263. else
  264. fp.Material = "Neon"
  265. end
  266. end
  267. fp:BreakJoints()
  268. return fp
  269. end
  270.  
  271. mesh = function(Mesh, part, meshtype, meshid, offset, scale)
  272. local mesh = it(Mesh)
  273. mesh.Parent = part
  274. if Mesh == "SpecialMesh" then
  275. mesh.MeshType = meshtype
  276. mesh.MeshId = meshid
  277. end
  278. mesh.Offset = offset
  279. mesh.Scale = scale
  280. return mesh
  281. end
  282.  
  283. weld = function(parent, part0, part1, c0)
  284. local weld = it("Weld")
  285. weld.Parent = parent
  286. weld.Part0 = part0
  287. weld.Part1 = part1
  288. weld.C0 = c0
  289. return weld
  290. end
  291.  
  292. F1 = Instance.new("Folder", Character)
  293. F1.Name = "Effects Folder"
  294. F2 = Instance.new("Folder", F1)
  295. F2.Name = "Effects"
  296. Triangle = function(a, b, c)
  297. end
  298.  
  299. MagicBlock4 = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  300. local prt = part(3, F2, 0, 0, brickcolor, "Effect", vt())
  301. prt.Anchored = true
  302. prt.CanCollide = false
  303. prt.CFrame = cframe
  304. prt.Name = "prt"
  305. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  306. game:GetService("Debris"):AddItem(prt, 5)
  307. table.insert(Effects, {prt, "Block1", delay, x3, y3, z3})
  308. end
  309.  
  310.  
  311.  
  312. MagicCircle4 = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  313. local prt = part(3, F2, 0, 0, brickcolor, "Effect", vt())
  314. prt.Anchored = true
  315. prt.CanCollide = false
  316. prt.CFrame = cframe
  317. prt.Name = "prt"
  318. local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  319. game:GetService("Debris"):AddItem(prt, 5)
  320. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3})
  321. end
  322.  
  323. MagicWave4 = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  324. local prt = part(3, F2, 0, 0, brickcolor, "Effect", vt())
  325. prt.Anchored = true
  326. prt.CFrame = cframe
  327. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", vt(0, 0, 0), vt(x1, y1, z1))
  328. game:GetService("Debris"):AddItem(prt, 5)
  329. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3})
  330. end
  331.  
  332. MagicCylinder4 = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  333. local prt = part(3, F2, 0, 0, brickcolor, "Effect", vt(0.2, 0.2, 0.2))
  334. prt.Anchored = true
  335. prt.CFrame = cframe
  336. msh = mesh("SpecialMesh", prt, "Head", "", vt(0, 0, 0), vt(x1, y1, z1))
  337. game:GetService("Debris"):AddItem(prt, 5)
  338. Effects[#Effects + 1] = {prt, "Cylinder", delay, x3, y3, z3}
  339. end
  340.  
  341. MagicCylinder5 = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  342. local prt = part(3, F2, 0, 0, brickcolor, "Effect", vt(0.2, 0.2, 0.2))
  343. prt.Anchored = true
  344. prt.CFrame = cframe
  345. msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  346. game:GetService("Debris"):AddItem(prt, 5)
  347. Effects[#Effects + 1] = {prt, "Cylinder", delay, x3, y3, z3}
  348. end
  349.  
  350. MagicBlood4 = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  351. local prt = part(3, F2, 0, 0, brickcolor, "Effect", vt())
  352. prt.Anchored = true
  353. prt.CFrame = cframe
  354. local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  355. game:GetService("Debris"):AddItem(prt, 5)
  356. table.insert(Effects, {prt, "Blood", delay, x3, y3, z3})
  357. end
  358.  
  359. ElecEffect4 = function(cff, x, y, z)
  360. local prt = part(3, F2, 0, 0, BrickColor.new("Bright yellow"), "Part", vt(1, 1, 1))
  361. prt.Anchored = true
  362. prt.CFrame = cff * cf(math.random(-x, x), math.random(-y, y), math.random(-z, z))
  363. prt.CFrame = cf(prt.Position)
  364. game:GetService("Debris"):AddItem(prt, 2)
  365. xval = math.random() / 2
  366. yval = math.random() / 2
  367. zval = math.random() / 2
  368. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(xval, yval, zval))
  369. Effects[#Effects + 1] = {prt, "Elec", 0.1, x, y, z, xval, yval, zval}
  370. end
  371.  
  372.  
  373.  
  374.  
  375.  
  376.  
  377.  
  378.  
  379.  
  380.  
  381.  
  382.  
  383.  
  384. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  385. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  386. prt.Anchored=true
  387. prt.CFrame=cframe
  388. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  389. --http://www.roblox.com/asset/?id=4770560
  390. game:GetService("Debris"):AddItem(prt,2)
  391. CF=prt.CFrame
  392. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  393. for i=0,1,0.2 do
  394. wait()
  395. Part.CFrame=CF*cf(0,0,-0.4)
  396. end
  397. for i=0,1,delay do
  398. wait()
  399. --Part.CFrame=CF*cf((math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5)
  400. Mesh.Scale=Mesh.Scale
  401. end
  402. for i=0,1,0.1 do
  403. wait()
  404. Part.Transparency=i
  405. end
  406. Part.Parent=nil
  407. end),prt,msh,CF)
  408. end
  409.  
  410. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  411. local prt=part(3,Character,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  412. prt.Anchored=true
  413. prt.Material = "Neon"
  414. prt.CFrame=cframe
  415. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  416. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  417. game:GetService("Debris"):AddItem(prt,5)
  418. coroutine.resume(coroutine.create(function(Part,Mesh)
  419. for i=0,1,delay do
  420. swait()
  421. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  422. Part.Transparency=i
  423. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  424. end
  425. Part.Parent=nil
  426. end),prt,msh)
  427. end
  428.  
  429. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  430. local prt=part(3,Character,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  431. prt.Anchored=true
  432. prt.Material = "Neon"
  433. prt.CFrame=cframe
  434. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  435. game:GetService("Debris"):AddItem(prt,5)
  436. coroutine.resume(coroutine.create(function(Part,Mesh)
  437. local rtype = rottype
  438. for i=0,1,delay do
  439. swait()
  440. if rtype == 1 then
  441. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  442. elseif rtype == 2 then
  443. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  444. end
  445. Part.Transparency=i
  446. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  447. end
  448. Part.Parent=nil
  449. end),prt,msh)
  450. end
  451.  
  452. function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  453. local prt=part(3,Character,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  454. prt.Anchored=true
  455. prt.CFrame=cframe
  456. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  457. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  458. game:GetService("Debris"):AddItem(prt,5)
  459. coroutine.resume(coroutine.create(function(Part,Mesh)
  460. for i=0,1,delay do
  461. swait()
  462. Part.Transparency=i
  463. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  464. end
  465. Part.Parent=nil
  466. end),prt,msh)
  467. end
  468.  
  469. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  470. local prt=part(3,Character,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  471. prt.Anchored=true
  472. prt.Material = "Neon"
  473. prt.CFrame=cframe
  474. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  475. game:GetService("Debris"):AddItem(prt,5)
  476. coroutine.resume(coroutine.create(function(Part,Mesh)
  477. local rtype = rottype
  478. for i=0,1,delay do
  479. swait()
  480. if rtype == 1 then
  481. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  482. elseif rtype == 2 then
  483. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  484. end
  485. Part.Transparency=i
  486. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  487. end
  488. Part.Parent=nil
  489. end),prt,msh)
  490. end
  491.  
  492. function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  493. local prt=part(3,Character,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  494. prt.Anchored=true
  495. prt.Material = "Neon"
  496. prt.CFrame=cframe
  497. local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  498. local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  499. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  500. game:GetService("Debris"):AddItem(prt,5)
  501. coroutine.resume(coroutine.create(function(Part,Mesh)
  502. local rtype = rottype
  503. for i=0,1,delay do
  504. swait()
  505. if rtype == 1 then
  506. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  507. elseif rtype == 2 then
  508. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  509. end
  510. dec.Transparency=i
  511. dec2.Transparency=i
  512. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  513. end
  514. Part.Parent=nil
  515. end),prt,msh)
  516. end
  517.  
  518. function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  519. local prt=part(3,Character,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  520. prt.Anchored=true
  521. prt.Material = "Neon"
  522. prt.CFrame=cframe
  523. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  524. game:GetService("Debris"):AddItem(prt,5)
  525. coroutine.resume(coroutine.create(function(Part,Mesh)
  526. local rtype = rottype
  527. for i=0,1,delay do
  528. swait()
  529. if rtype == 1 then
  530. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  531. elseif rtype == 2 then
  532. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  533. end
  534. prt.Transparency=i
  535. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  536. end
  537. Part.Parent=nil
  538. end),prt,msh)
  539. end
  540.  
  541. function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
  542. local prt=part(3,Character,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  543. prt.Anchored=true
  544. prt.Material = "Neon"
  545. prt.CFrame=cframe
  546. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
  547. game:GetService("Debris"):AddItem(prt,5)
  548. coroutine.resume(coroutine.create(function(Part,Mesh)
  549. local rtype = rottype
  550. for i=0,1,delay do
  551. swait()
  552. if rtype == 1 then
  553. prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
  554. elseif rtype == 2 then
  555. prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
  556. end
  557. prt.Transparency=i
  558. Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
  559. end
  560. Part.Parent=nil
  561. end),prt,msh)
  562. end
  563.  
  564. function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
  565. local prt=part(3,Character,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  566. prt.Anchored=true
  567. prt.Material = "Neon"
  568. prt.CFrame=cframe
  569. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  570. game:GetService("Debris"):AddItem(prt,5)
  571. coroutine.resume(coroutine.create(function(Part,Mesh)
  572. local rtype = rottype
  573. for i=0,1,delay do
  574. swait()
  575. if rtype == 1 then
  576. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  577. elseif rtype == 2 then
  578. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  579. end
  580. prt.Transparency=i
  581. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  582. end
  583. Part.Parent=nil
  584. end),prt,msh)
  585. end
  586.  
  587. function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  588. local prt=part(3,Character,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  589. prt.Anchored=true
  590. prt.Material = "Neon"
  591. prt.CFrame=cframe
  592. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  593. game:GetService("Debris"):AddItem(prt,5)
  594. coroutine.resume(coroutine.create(function(Part,Mesh)
  595. local rtype = rottype
  596. for i=0,1,delay do
  597. swait()
  598. if rtype == 1 then
  599. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  600. elseif rtype == 2 then
  601. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  602. end
  603. prt.Transparency=i
  604. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  605. end
  606. Part.Parent=nil
  607. end),prt,msh)
  608. end
  609.  
  610. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  611. local prt=part(3,Character,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  612. prt.Anchored=false
  613. prt.CFrame=cframe
  614. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  615. local wld=weld(prt,prt,Parent,cframe)
  616. game:GetService("Debris"):AddItem(prt,5)
  617. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  618. for i=0,1,delay do
  619. swait()
  620. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  621. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  622. Part.Transparency=i
  623. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  624. end
  625. Part.Parent=nil
  626. end),prt,msh,wld)
  627. end
  628.  
  629. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  630. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  631. prt.Anchored=false
  632. prt.CFrame=cframe
  633. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  634. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  635. game:GetService("Debris"):AddItem(prt,5)
  636. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  637. for i=0,1,delay do
  638. swait()
  639. Weld.C0=euler(i*20,0,0)
  640. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  641. Part.Transparency=i
  642. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  643. end
  644. Part.Parent=nil
  645. end),prt,msh,wld)
  646. end
  647.  
  648. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  649. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  650. prt.Anchored=true
  651. prt.CFrame=cframe
  652. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  653. game:GetService("Debris"):AddItem(prt,2)
  654. coroutine.resume(coroutine.create(function(Part,Mesh)
  655. for i=0,1,delay do
  656. swait()
  657. Part.CFrame=Part.CFrame
  658. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  659. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  660. prt2.Anchored=true
  661. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  662. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  663. game:GetService("Debris"):AddItem(prt2,2)
  664. coroutine.resume(coroutine.create(function(Part,Mesh)
  665. for i=0,1,0.1 do
  666. swait()
  667. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  668. end
  669. Part.Parent=nil
  670. end),prt2,msh2)
  671. end
  672. for i=0,1,delay*2 do
  673. swait()
  674. Part.CFrame=Part.CFrame
  675. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  676. end
  677. Part.Parent=nil
  678. end),prt,msh)
  679. end
  680.  
  681. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  682. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  683. prt.Anchored=true
  684. prt.CFrame=cframe
  685. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  686. game:GetService("Debris"):AddItem(prt,2)
  687. coroutine.resume(coroutine.create(function(Part,Mesh)
  688. for i=0,1,delay do
  689. swait()
  690. Part.CFrame=Part.CFrame
  691. Part.Transparency=i
  692. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  693. end
  694. Part.Parent=nil
  695. end),prt,msh)
  696. end
  697.  
  698. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  699. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  700. prt.Anchored=true
  701. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  702. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  703. game:GetService("Debris"):AddItem(prt,2)
  704. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  705. CF=Part.CFrame
  706. Numbb=0
  707. randnumb=math.random()/10
  708. rand1=math.random()/10
  709. for i=0,1,rand1 do
  710. swait()
  711. CF=CF*cf(0,math.random()/2,0)
  712. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  713. Part.CFrame=CF*euler(Numbb,0,0)
  714. Part.Transparency=i
  715. Numbb=Numbb+randnumb
  716. end
  717. Part.Parent=nil
  718. end),prt,CF,Numbb,randnumb)
  719. end
  720.  
  721. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  722. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  723. prt.Anchored=true
  724. prt.CFrame=cframe
  725. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  726. game:GetService("Debris"):AddItem(prt,5)
  727. coroutine.resume(coroutine.create(function(Part,Mesh)
  728. for i=0,1,delay do
  729. swait()
  730. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  731. Part.Transparency=i
  732. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  733. end
  734. Part.Parent=nil
  735. end),prt,msh)
  736. end
  737.  
  738. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  739. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  740. prt.Anchored=true
  741. prt.CFrame=cframe
  742. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  743. game:GetService("Debris"):AddItem(prt,2)
  744. coroutine.resume(coroutine.create(function(Part,Mesh)
  745. for i=0,1,delay do
  746. swait()
  747. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  748. Part.Transparency=i
  749. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  750. end
  751. Part.Parent=nil
  752. end),prt,msh)
  753. end
  754.  
  755. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  756. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  757. prt.Anchored=true
  758. prt.CFrame=cframe*cf(x,y,z)
  759. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  760. game:GetService("Debris"):AddItem(prt,5)
  761. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  762. local num=math.random()
  763. local num2=math.random(-3,2)+math.random()
  764. local numm=0
  765. for i=0,1,delay*2 do
  766. swait()
  767. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  768. Part.Transparency=i
  769. numm=numm+0.01
  770. end
  771. Part.Parent=nil
  772. Mesh.Parent=nil
  773. end),prt,msh,x,y,z)
  774. end
  775.  
  776.  
  777.  
  778.  
  779.  
  780.  
  781.  
  782. New = function(Object, Parent, Name, Data)
  783. local Object = Instance.new(Object)
  784. for Index, Value in pairs(Data or {}) do
  785. Object[Index] = Value
  786. end
  787. Object.Parent = Parent
  788. Object.Name = Name
  789. return Object
  790. end
  791.  
  792.  
  793.  
  794. function clerp(a,b,t)
  795. local qa = {QuaternionFromCFrame(a)}
  796. local qb = {QuaternionFromCFrame(b)}
  797. local ax, ay, az = a.x, a.y, a.z
  798. local bx, by, bz = b.x, b.y, b.z
  799. local _t = 1-t
  800. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  801. end
  802.  
  803. function QuaternionFromCFrame(cf)
  804. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  805. local trace = m00 + m11 + m22
  806. if trace > 0 then
  807. local s = math.sqrt(1 + trace)
  808. local recip = 0.5/s
  809. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  810. else
  811. local i = 0
  812. if m11 > m00 then
  813. i = 1
  814. end
  815. if m22 > (i == 0 and m00 or m11) then
  816. i = 2
  817. end
  818. if i == 0 then
  819. local s = math.sqrt(m00-m11-m22+1)
  820. local recip = 0.5/s
  821. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  822. elseif i == 1 then
  823. local s = math.sqrt(m11-m22-m00+1)
  824. local recip = 0.5/s
  825. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  826. elseif i == 2 then
  827. local s = math.sqrt(m22-m00-m11+1)
  828. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  829. end
  830. end
  831. end
  832.  
  833.  
  834.  
  835. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  836. local xs, ys, zs = x + x, y + y, z + z
  837. local wx, wy, wz = w*xs, w*ys, w*zs
  838. local xx = x*xs
  839. local xy = x*ys
  840. local xz = x*zs
  841. local yy = y*ys
  842. local yz = y*zs
  843. local zz = z*zs
  844. return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
  845. end
  846. function QuaternionSlerp(a, b, t)
  847. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  848. local startInterp, finishInterp;
  849. if cosTheta >= 0.0001 then
  850. if (1 - cosTheta) > 0.0001 then
  851. local theta = math.acos(cosTheta)
  852. local invSinTheta = 1/math.sin(theta)
  853. startInterp = math.sin((1-t)*theta)*invSinTheta
  854. finishInterp = math.sin(t*theta)*invSinTheta
  855. else
  856. startInterp = 1-t
  857. finishInterp = t
  858. end
  859. else
  860. if (1+cosTheta) > 0.0001 then
  861. local theta = math.acos(-cosTheta)
  862. local invSinTheta = 1/math.sin(theta)
  863. startInterp = math.sin((t-1)*theta)*invSinTheta
  864. finishInterp = math.sin(t*theta)*invSinTheta
  865. else
  866. startInterp = t-1
  867. finishInterp = t
  868. end
  869. end
  870. return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
  871. end
  872.  
  873. function weld5(part0, part1, c0, c1)
  874. weeld=Instance.new("Weld", part0)
  875. weeld.Part0=part0
  876. weeld.Part1=part1
  877. weeld.C0=c0
  878. weeld.C1=c1
  879. return weeld
  880. end
  881.  
  882. --Example: Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  883.  
  884. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  885. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  886. end
  887.  
  888.  
  889.  
  890.  
  891.  
  892.  
  893.  
  894.  
  895.  
  896.  
  897. function Dmgfunc(player,mindamage,maxdamage,waait)
  898.  
  899. dodamage = coroutine.wrap(function()
  900.  
  901. if player ~= Character and player:FindFirstChild("IsHit") == nil then
  902.  
  903. Max = mindamage + math.random(-mindamage,maxdamage)
  904.  
  905. player.Humanoid.Health = player.Humanoid.Health - Max
  906.  
  907.  
  908. local thiing = Instance.new("ObjectValue",player)
  909. thiing.Name = "IsHit"
  910. deb:AddItem(thiing,waait)
  911.  
  912. --for nooby ;)
  913. local Damagetext = Instance.new("BillboardGui",player)
  914. Damagetext.Size = UDim2.new(0,100,0,40)
  915. Damagetext.StudsOffset = Vector3.new(0,3,0)
  916. Damagetext.Adornee = player.Head
  917. Damagetext.Name = "TalkingBillBoard"
  918. local Damagelabel = Instance.new("TextLabel",Damagetext)
  919. Damagelabel.BackgroundTransparency = 1
  920. Damagelabel.BorderSizePixel = 0
  921. Damagelabel.Text = ""..Max
  922. Damagelabel.Font = "Bodoni"
  923. Damagelabel.FontSize = "Size24"
  924. Damagelabel.TextStrokeTransparency = 0
  925. Damagelabel.TextColor3 = Color3.new(255,255,255)
  926. Damagelabel.TextStrokeColor3 = Color3.new(0,0,0)
  927. Damagelabel.Size = UDim2.new(1,0,1.5,0)
  928. deb:AddItem(Damagetext,4.5)
  929. for i = 1, 70 do
  930. wait(0.00000000000000000000000001)
  931. Damagelabel.Position = Damagelabel.Position - UDim2.new(0,0,.06,0)
  932. Damagelabel.TextStrokeTransparency = Damagelabel.TextStrokeTransparency +.06
  933. Damagelabel.TextTransparency = Damagelabel.TextTransparency + .04
  934. end
  935. Damagetext:Destroy()
  936. end
  937. end)
  938. dodamage(player,mindamage,maxdamage,waait)
  939.  
  940. end
  941.  
  942.  
  943.  
  944.  
  945.  
  946.  
  947.  
  948. function Bullets(thinggy,size,color,velocity,damage,bounce,collide,rotation)
  949. swait()
  950. local Bullet = Instance.new("Part",Workspace)
  951. Bullet.Locked = true
  952. Bullet.Name = "Bullet"
  953. Bullet.Anchored = bounce
  954. Bullet.CanCollide = collide
  955. Bullet.Transparency = 0.24
  956. Bullet.Reflectance = 0
  957. Bullet.BottomSurface = 0
  958. Bullet.TopSurface = 0
  959. Bullet.Shape = 0
  960. Bullet.BrickColor = BrickColor.new(color)
  961. Bullet.Size = Vector3.new(size,size,size)
  962. Bullet.Material = "Neon"
  963. Bullet.Orientation = vt(-90,0,0)
  964. local Bulletthing = Instance.new("SpecialMesh",Bullet)
  965. Bulletthing.MeshId = "rbxassetid://1565065512"
  966. local Bulletforce = Instance.new("BodyForce")
  967. Bulletforce.force = Vector3.new(0,Bullet:GetMass()*166.2,0)
  968. Bulletforce.Parent = Bullet
  969. Bullet.CFrame = thinggy.CFrame*CFrame.new(0,0,0) + Vector3.new(math.random(-1,1),math.random(0,0.7),math.random(-1,1))
  970. local bv = Instance.new("BodyVelocity",Bullet)
  971. bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  972. Bullet.CFrame = CFrame.new(Bullet.Position,mouse.Hit.p+Vector3.new(math.random(-7,7),math.random(-2,2),math.random(-6,6)))
  973. bv.velocity = Bullet.CFrame.lookVector*velocity
  974.  
  975. so("http://roblox.com/asset/?id=925629856",Bullet,0.4,1)
  976. if bounce == false then
  977. Bullet.Touched:connect(function(hit)
  978. if (hit.Parent.Parent ~= Character and hit.Parent ~= Character and hit.Name ~= "Bullet" and hit.Name ~= "prt" and Bullet.Anchored == false) then
  979. local orbexplode = Instance.new("Sound", Bullet)
  980. orbexplode.Volume = 0.4
  981. orbexplode.PlayOnRemove = true
  982. orbexplode.SoundId = "http://roblox.com/asset/?id=929619479"
  983. orbexplode.Pitch = 1
  984. orbexplode:Destroy()
  985. deb:AddItem(orbexplode, 4)
  986. Bullet.Anchored = true
  987. local Explode = Instance.new("Explosion")
  988. Explode.Position = Bullet.Position
  989. Explode.Parent = Workspace
  990. Explode.BlastPressure = 0
  991. Explode.BlastRadius = Bullet.Size.X *3.6
  992. Explode.Visible = false
  993. Explode.Hit:connect(function(hit)
  994. if hit.Parent:FindFirstChild("Humanoid")~=nil and hit.Parent:FindFirstChild("IsHit")==nil then
  995. Dmgfunc(hit.Parent,damage,0+damage,.01)
  996. end
  997. end)
  998. Bullet.Mesh.Scale = Vector3.new(0,0,0)
  999. MagicCircle4(BrickColor.new(color), Bullet.CFrame * cf(0, 0, 0), 1, 1, 1, 2.2+size*1.4, 2.2+size*1.4, 2.2+size*1.4, 0.02)
  1000. MagicCircle4(BrickColor.new("White"), Bullet.CFrame * cf(0, 0, 0), 1, 1, 1, 4.2, 4.2, 4.2, 0.02)
  1001. end
  1002. end)
  1003. elseif bounce == true then
  1004. Bullet.Touched:connect(function(hit)
  1005. if (hit.Parent:FindFirstChild("Humanoid")~=nil and hit.Parent~= Character) then
  1006. Bullet.Anchored = true
  1007. local Explode = Instance.new("Explosion")
  1008. Explode.Position = Bullet.Position
  1009. Explode.Parent = Workspace
  1010. Explode.BlastPressure = 0
  1011. Explode.BlastRadius = Bullet.Size.X
  1012. Explode.Visible = false
  1013. Explode.Hit:connect(function(hit)
  1014. if hit.Parent:FindFirstChild("Humanoid")~=nil and hit.Parent:FindFirstChild("IsHit")==nil then
  1015. Dmgfunc(hit.Parent,damage,0+damage,.01)
  1016. end
  1017. end)
  1018. Bullet.Mesh.Scale = Vector3.new(.1,.1,.1)
  1019.  
  1020. MagicCircle4(BrickColor.new(color), Bullet.CFrame * cf(0, 0, 0), 1, 1, 1, 2.2+size*1.4, 2.2+size*1.4, 2.2+size*1.4, 0.02)
  1021. MagicCircle4(BrickColor.new("White"), Bullet.CFrame * cf(0, 0, 0), 1, 1, 1, 4.2, 4.2, 4.2, 0.02)
  1022.  
  1023.  
  1024. end
  1025. end)
  1026. end
  1027. deb:AddItem(Bullet,5.3)
  1028.  
  1029. return Bullet
  1030. end
  1031.  
  1032.  
  1033.  
  1034.  
  1035. function Rotbullet(thinggy,size,color,velocity,damage,bounce,collide)
  1036.  
  1037. rotation = 0
  1038. rotation2 = 0
  1039.  
  1040.  
  1041. local Bullet = Instance.new("Part",Workspace)
  1042. Bullet.Locked = true
  1043. Bullet.Name = "Bullet"
  1044. Bullet.Anchored = bounce
  1045. Bullet.CanCollide = collide
  1046. Bullet.Transparency = 0.24
  1047. Bullet.Reflectance = 0
  1048. Bullet.BottomSurface = 0
  1049. Bullet.TopSurface = 0
  1050. Bullet.Shape = 0
  1051. Bullet.BrickColor = BrickColor.new(color)
  1052. Bullet.Size = Vector3.new(size,size,size)
  1053. Bullet.Material = "Neon"
  1054. local Bulletthing = Instance.new("SpecialMesh",Bullet)
  1055. Bulletthing.MeshType = "Sphere"
  1056. local Bulletforce = Instance.new("BodyForce")
  1057. Bulletforce.force = Vector3.new(0,Bullet:GetMass()*166.2,0)
  1058. Bulletforce.Parent = Bullet
  1059. Bullet.CFrame = thinggy.CFrame*CFrame.new(0,0,0) + Vector3.new(math.random(-1,1),math.random(0,0.7),math.random(-1,1))
  1060. local bv = Instance.new("BodyVelocity",Bullet)
  1061. bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1062. Bullet.CFrame = CFrame.new(Bullet.Position,mouse.Hit.p+Vector3.new(math.random(-7,7),math.random(-2,2),math.random(-6,6)))
  1063. bv.velocity = Bullet.CFrame.lookVector*velocity
  1064. so("http://roblox.com/asset/?id=925629856",Bullet,0.4,1)
  1065. if bounce == false then
  1066. Bullet.Touched:connect(function(hit)
  1067. if (hit.Parent.Parent ~= Character and hit.Parent ~= Character and hit.Name ~= "Bullet" and hit.Name ~= "prt" and Bullet.Anchored == false) then
  1068.  
  1069.  
  1070.  
  1071. local orbexplode = Instance.new("Sound", Bullet)
  1072. orbexplode.Volume = 0.4
  1073. orbexplode.PlayOnRemove = true
  1074. orbexplode.SoundId = "http://roblox.com/asset/?id=929619479"
  1075. orbexplode.Pitch = 1
  1076. orbexplode:Destroy()
  1077. deb:AddItem(orbexplode, 4)
  1078. Bullet.Anchored = true
  1079.  
  1080. local Explode = Instance.new("Explosion")
  1081. Explode.Position = Bullet.Position
  1082. Explode.Parent = Workspace
  1083. Explode.BlastPressure = 0
  1084. Explode.BlastRadius = Bullet.Size.X *3.6
  1085. Explode.Visible = false
  1086.  
  1087.  
  1088.  
  1089. Explode.Hit:connect(function(hit)
  1090. if hit.Parent:FindFirstChild("Humanoid")~=nil and hit.Parent:FindFirstChild("IsHit")==nil then
  1091. Dmgfunc(hit.Parent,damage,0+damage,.01)
  1092. end
  1093. end)
  1094. Bullet.Mesh.Scale = Vector3.new(0,0,0)
  1095. MagicCircle4(BrickColor.new(color), Bullet.CFrame * cf(0, 0, 0), 1, 1, 1, 2.2+size*1.4, 2.2+size*1.4, 2.2+size*1.4, 0.02)
  1096. MagicCircle4(BrickColor.new("White"), Bullet.CFrame * cf(0, 0, 0), 1, 1, 1, 4.2, 4.2, 4.2, 0.02)
  1097.  
  1098. for i = 1,10 do
  1099. wait(0)
  1100. rotation2 = rotation2 - 25
  1101. local Bullet2 = Instance.new("Part")
  1102. Bullet2.Parent = Workspace
  1103. Bullet2.Material = "Neon"
  1104. Bullet2.BrickColor = BrickColor.new(color)
  1105. Bullet2.CanCollide = false
  1106. Bullet2.Archivable = true
  1107. Bullet2.Anchored = false
  1108. Bullet2.Transparency = 0
  1109. Bullet2.Size = vt(size/1.3,size/1.3,size/1.3)
  1110. local B2mesh = Instance.new("SpecialMesh",Bullet2)
  1111. B2mesh.MeshType = "Sphere"
  1112. Bullet2.CFrame = Bullet.CFrame*CFrame.Angles(0,math.rad(rotation2),0)*CFrame.new(0,2,0)
  1113. local bv2 = Instance.new("BodyVelocity",Bullet2)
  1114. bv2.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1115. bv2.velocity = Bullet2.CFrame.lookVector*velocity
  1116.  
  1117.  
  1118.  
  1119.  
  1120.  
  1121. Bullet2.Touched:connect(function(hit)
  1122. if (hit.Parent.Parent ~= Character and hit.Parent ~= Character and hit.Name ~= "Bullet" and hit.Name ~= "prt" and Bullet.Anchored == true) then
  1123. Bullet2.Anchored = true
  1124. local Explode2 = Instance.new("Explosion")
  1125. Explode2.Position = Bullet2.Position
  1126. Explode2.Parent = Workspace
  1127. Explode2.BlastPressure = 0
  1128. Explode2.BlastRadius = Bullet2.Size.X *3.6
  1129. Explode2.Visible = false
  1130.  
  1131. Explode2.Hit:connect(function(hit)
  1132. if hit.Parent:FindFirstChild("Humanoid")~=nil and hit.Parent:FindFirstChild("IsHit")==nil then
  1133. Dmgfunc(hit.Parent,damage,0+damage,.01)
  1134. end
  1135. end)
  1136. Bullet2.Mesh.Scale = Vector3.new(0,0,0)
  1137. MagicCircle4(BrickColor.new(color), Bullet2.CFrame * cf(0, 0, 0), 1, 1, 1, 2.2+size/1.4, 2.2+size/1.4, 2.2+size/1.4, 0.02)
  1138. MagicCircle4(BrickColor.new("White"), Bullet2.CFrame * cf(0, 0, 0), 1, 1, 1, 4.2, 4.2, 4.2, 0.02)
  1139. end
  1140. end)
  1141.  
  1142.  
  1143. end
  1144. end
  1145. end)
  1146.  
  1147. elseif bounce == true then
  1148. Bullet.Touched:connect(function(hit)
  1149. if (hit.Parent:FindFirstChild("Humanoid")~=nil and hit.Parent~= Character) then
  1150. Bullet.Anchored = true
  1151. local Explode = Instance.new("Explosion")
  1152. Explode.Position = Bullet.Position
  1153. Explode.Parent = Workspace
  1154. Explode.BlastPressure = 0
  1155. Explode.BlastRadius = Bullet.Size.X
  1156. Explode.Visible = false
  1157. Explode.Hit:connect(function(hit)
  1158. if hit.Parent:FindFirstChild("Humanoid")~=nil and hit.Parent:FindFirstChild("IsHit")==nil then
  1159. Dmgfunc(hit.Parent,damage,0+damage,.01)
  1160. end
  1161. end)
  1162. Bullet.Mesh.Scale = Vector3.new(.1,.1,.1)
  1163.  
  1164. MagicCircle4(BrickColor.new(color), Bullet.CFrame * cf(0, 0, 0), 1, 1, 1, 2.2+size*1.4, 2.2+size*1.4, 2.2+size*1.4, 0.02)
  1165. MagicCircle4(BrickColor.new("White"), Bullet.CFrame * cf(0, 0, 0), 1, 1, 1, 4.2, 4.2, 4.2, 0.02)
  1166.  
  1167.  
  1168. end
  1169. end)
  1170. end
  1171. deb:AddItem(Bullet,3.3)
  1172. deb:AddItem(Bullet2,3.3)
  1173.  
  1174. return Bullet
  1175. end
  1176.  
  1177.  
  1178.  
  1179.  
  1180.  
  1181. function Bullets2(size,color,velocity,damage,bounce,collide)
  1182. local Bullet = Instance.new("Part",Workspace)
  1183. Bullet.Locked = true
  1184. Bullet.Name = "Bullet"
  1185. Bullet.Anchored = bounce
  1186. Bullet.CanCollide = collide
  1187. Bullet.Transparency = 0.24
  1188. Bullet.Reflectance = 0
  1189. Bullet.BottomSurface = 0
  1190. Bullet.TopSurface = 0
  1191. Bullet.Shape = 0
  1192. Bullet.BrickColor = BrickColor.new(color)
  1193. Bullet.Size = Vector3.new(size,size,size)
  1194. Bullet.Material = "Neon"
  1195. local Bulletthing = Instance.new("SpecialMesh",Bullet)
  1196. Bulletthing.MeshType = "Sphere"
  1197. Bullet.CFrame = handee.CFrame*CFrame.new(0,0,0) + Vector3.new(math.random(-180,180),math.random(-1.6,6.6),math.random(-180,180))
  1198. local bv = Instance.new("BodyVelocity",Bullet)
  1199. bv.maxForce = Vector3.new(99999,99999,99999)
  1200. Bullet.CFrame = CFrame.new(Bullet.Position,mouse.Hit.p)
  1201. bv.velocity = Bullet.CFrame.lookVector*velocity
  1202. so("http://roblox.com/asset/?id=200633327",Bullet,1,1)
  1203. spawn = coroutine.wrap(function()
  1204. Bullet.Transparency = 0
  1205. Bullet.Mesh.Scale = Vector3.new(3.5,3.5,3.5)
  1206. wait()
  1207. Bullet.Transparency = .25
  1208. Bullet.Mesh.Scale = Vector3.new(2.5,2.5,2.5)
  1209. wait()
  1210. Bullet.Transparency = .5
  1211. Bullet.Mesh.Scale = Vector3.new(1.5,1.5,1.5)
  1212. wait()
  1213. Bullet.Transparency = 0
  1214. Bullet.Mesh.Scale = Vector3.new(1,1,1)
  1215. end)
  1216. if bounce == false then
  1217. Bullet.Touched:connect(function(hit)
  1218. if (hit.Parent.Parent ~= Character and hit.Parent ~= Character and hit.Name ~= "Bullet" and Bullet.Anchored == false) then
  1219. Bullet.Anchored = true
  1220. local Explode = Instance.new("Explosion")
  1221. Explode.Position = Bullet.Position
  1222. Explode.Parent = Workspace
  1223. Explode.BlastPressure = 0
  1224. Explode.BlastRadius = Bullet.Size.X
  1225. Explode.Visible = false
  1226. Explode.Hit:connect(function(hit)
  1227. if hit.Parent:FindFirstChild("Humanoid")~=nil and hit.Parent:FindFirstChild("IsHit")==nil then
  1228. Dmgfunc(hit.Parent,damage,0.7,0)
  1229. end
  1230. end)
  1231. Bullet.Mesh.Scale = Vector3.new(.1,.1,.1)
  1232. MagicBlock(BrickColor.new(color), Bullet.CFrame * cf(0, 0, 0), 1, 1, 1, 1.7, 1.7, 1.7, 0.04)
  1233. MagicBlock(BrickColor.new(color), Bullet.CFrame * cf(0, 0, 0), 1, 1, 1, 2.2, 2.2, 2.2, 0.04)
  1234. for i = 0,2.3,0.1 do
  1235. swait()
  1236. Bullet.Transparency = Bullet.Transparency + 0.02
  1237. Bullet.Mesh.Scale = Bullet.Mesh.Scale + Vector3.new(.3,.3,.3)
  1238. end
  1239. Bullet:Destroy()
  1240. end
  1241. end)
  1242. elseif bounce == true then
  1243. Bullet.Touched:connect(function(hit)
  1244. if (hit.Parent:FindFirstChild("Humanoid")~=nil and hit.Parent~= Character) then
  1245. Bullet.Anchored = true
  1246. local Explode = Instance.new("Explosion")
  1247. Explode.Position = Bullet.Position
  1248. Explode.Parent = Workspace
  1249. Explode.BlastPressure = 0
  1250. Explode.BlastRadius = Bullet.Size.X
  1251. Explode.Visible = false
  1252. Explode.Hit:connect(function(hit)
  1253. if hit.Parent:FindFirstChild("Humanoid")~=nil and hit.Parent:FindFirstChild("IsHit")==nil then
  1254. Dmgfunc(hit.Parent,damage,0.7,0)
  1255. end
  1256. end)
  1257. Bullet.Mesh.Scale = Vector3.new(.1,.1,.1)
  1258. MagicBlock(BrickColor.new(color), Bullet.CFrame * cf(0, 0, 0), 1, 1, 1, 1.7, 1.7, 1.7, 0.04)
  1259. MagicBlock(BrickColor.new(color), Bullet.CFrame * cf(0, 0, 0), 1, 1, 1, 2.2, 2.2, 2.2, 0.04)
  1260. for i = 0,2.3,0.1 do
  1261. swait()
  1262. Bullet.Transparency = Bullet.Transparency + 0.02
  1263. Bullet.Mesh.Scale = Bullet.Mesh.Scale + Vector3.new(.3,.3,.3)
  1264. MagicSphere(BrickColor.new(color), Bullet.CFrame * cf(0, 0, 0), 1, 1, 1, 6.2, 6.2, 6.2, 0.04)
  1265. MagicSphere(BrickColor.new(color), Bullet.CFrame * cf(0, 0, 0), 1, 1, 1, 8.2, 8.2, 8.2, 0.04)
  1266. end
  1267. Bullet:Destroy()
  1268. end
  1269. end)
  1270. end
  1271. spawn()
  1272. deb:AddItem(Bullet,10)
  1273. return Bullet
  1274. end
  1275.  
  1276.  
  1277.  
  1278.  
  1279.  
  1280.  
  1281.  
  1282.  
  1283. local shooting = false
  1284.  
  1285.  
  1286.  
  1287. function shoot()
  1288. so("http://roblox.com/asset/?id=925333540",Torso,1.1,1)
  1289. MagicBlock4(BrickColor.new("Cool yellow"), RootPart.CFrame * cf(0, 0, 0), 1, 1, 1, 16.2, 16.2, 16.2, 0.04)
  1290.  
  1291. MagicCircle4(BrickColor.new("Bright yellow"), RootPart.CFrame * cf(0, 0, 0), 1, 1, 1, 19.2, 19.2, 19.2, 0.03)
  1292.  
  1293. MagicWave4(BrickColor.new("Bright yellow"), cf(RootPart.Position) * cf(0, -1, 0) * euler(0, math.random(-50, 50), 0), 1, 1, 1, 0.5, 0.3, 0.5, 0.04)
  1294.  
  1295. MagicWave4(BrickColor.new("Cool yellow"), RootPart.CFrame * cf(0, -1, 0) * euler(0, math.random(-50, 50), 0), 1, 1, 1, 1, 0.5, 1, 0.05)
  1296. attack = true
  1297. local thing = Instance.new("BodyGyro",RootPart)
  1298. thing.D = 350
  1299. thing.P = 6000
  1300. thing.MaxTorque = vt(100000,math.huge,0)
  1301. thing.CFrame = CFrame.new(RootPart.Position,mouse.Hit.p)
  1302. for i = 0,2,0.16 do
  1303. swait()
  1304. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 0.2)
  1305. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-80)),.2)
  1306. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)),.2)
  1307. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)),.2)
  1308. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.73, -1.0, 0) * CFrame.Angles(math.rad(-25), math.rad(-66), math.rad(-25)), 0.1)
  1309. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.6, -1.0, 0) * CFrame.Angles(math.rad(0), math.rad(-83), math.rad(0)), 0.1)
  1310. end
  1311. shooting = true
  1312.  
  1313. while shooting == true do
  1314. swait(2.5)
  1315. thing.CFrame = CFrame.new(RootPart.Position,mouse.Hit.p)
  1316. Torso.Velocity = RootPart.CFrame.lookVector * -13
  1317. if math.random(1,2) == 1 then
  1318. Bullets(handee,math.random(1,2),g,math.random(220,520),5.5,false,false)
  1319. MagicBlock(BrickColor.new("Cool"), RightArm.CFrame * cf(math.random(-100, 100) / 100, -math.random(0, 700) / 100, math.random(-100, 100) / 100), math.random(30, 80) / 100, math.random(30, 80) / 100, math.random(30, 80) / 100, 0.5, 0.5, 0.5, 0.05)
  1320. else
  1321. Bullets(handee,math.random(1,2),r,math.random(200,520),6.3,false,false)
  1322. MagicBlock(BrickColor.new("Bright yellow"), RightArm.CFrame * cf(math.random(-100, 100) / 100, -math.random(0, 700) / 100, math.random(-100, 100) / 100), math.random(30, 80) / 100, math.random(30, 80) / 100, math.random(30, 80) / 100, 0.5, 0.5, 0.5, 0.05)
  1323. end
  1324. end
  1325.  
  1326. attack = false
  1327. thing:Destroy()
  1328. end
  1329.  
  1330.  
  1331.  
  1332.  
  1333. local cardmax = 0
  1334. local cardpos = 3
  1335. local carding = false
  1336.  
  1337.  
  1338. local spelleff = Instance.new("ParticleEmitter",Torso)
  1339. spelleff.Enabled = false
  1340. spelleff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(.1,10),NumberSequenceKeypoint.new(.9,10),NumberSequenceKeypoint.new(1,20)})
  1341. spelleff.Lifetime = NumberRange.new(2)
  1342. spelleff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(0.9,0),NumberSequenceKeypoint.new(1,1)})
  1343. spelleff.LightEmission = .3
  1344. spelleff.Speed = NumberRange.new(2)
  1345. spelleff.LockedToPart = true
  1346. spelleff.Texture = "http://www.roblox.com/asset/?id=480846211"
  1347. function SpellActivate()
  1348. Humanoid.WalkSpeed = 0
  1349. wait(.2)
  1350. spelleff:Emit(1)
  1351. local jtrace = Instance.new("Part",game.Workspace)
  1352. jtrace.Size = Vector3.new(0,0,0)
  1353. jtrace.Position = Torso.Position
  1354. jtrace.CFrame = Torso.CFrame - Vector3.new(0,2,0)
  1355. jtrace.Anchored = true
  1356. jtrace.BrickColor = BrickColor.new("Bright yellow")
  1357. local tmesh = Instance.new("SpecialMesh",jtrace)
  1358. tmesh.MeshId = "http://www.roblox.com/asset/?id=1125478"
  1359. tmesh.Scale = Vector3.new(0,0,0)
  1360. for i = 1, 40 do
  1361. wait(.01)
  1362. jtrace.Transparency = jtrace.Transparency + .025
  1363. tmesh.Scale = tmesh.Scale + Vector3.new(.5,.05,.5)
  1364. end
  1365. jtrace:Destroy()
  1366. wait(.2)
  1367. Humanoid.WalkSpeed = 16
  1368. end
  1369.  
  1370.  
  1371.  
  1372. function chatfunc(text)
  1373. chat = coroutine.wrap(function(ttt)
  1374. if chara:FindFirstChild("TalkingBillBoard")~= nil then
  1375. chara:FindFirstChild("TalkingBillBoard"):destroy()
  1376. end
  1377. local naeeym2 = Instance.new("BillboardGui",chara)
  1378. naeeym2.Size = UDim2.new(0,100,0,40)
  1379. naeeym2.StudsOffset = Vector3.new(0,3,0)
  1380. naeeym2.Adornee = chara.Head
  1381. naeeym2.Name = "TalkingBillBoard"
  1382. local tecks2 = Instance.new("TextLabel",naeeym2)
  1383. tecks2.BackgroundTransparency = 1
  1384. tecks2.BorderSizePixel = 0
  1385. tecks2.Text = text
  1386. tecks2.Font = "Fantasy"
  1387. tecks2.FontSize = "Size24"
  1388. tecks2.TextStrokeTransparency = 0
  1389. tecks2.TextColor3 = Color3.new(1,1,1)
  1390. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  1391. tecks2.Size = UDim2.new(1,0,0.5,0)
  1392. wait(1)
  1393. for i = 1, 5 do
  1394. wait(.01)
  1395. tecks2.Position = tecks2.Position - UDim2.new(0,0,.05,0)
  1396. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.2
  1397. tecks2.TextTransparency = tecks2.TextTransparency + .2
  1398. end
  1399. naeeym2:Destroy()
  1400. end)
  1401. chat(text)
  1402. end
  1403.  
  1404.  
  1405.  
  1406. function SCB()
  1407. print('Spell Card Barrage -> Debuff - 3.6 WalkSpeed.')
  1408. Humanoid.WalkSpeed = Humanoid.WalkSpeed-3.6
  1409. so("http://roblox.com/asset/?id=925333540",Torso,1.1,1)
  1410. MagicBlock4(BrickColor.new("Cool yellow"), RootPart.CFrame * cf(0, 0, 0), 1, 1, 1, 16.2, 16.2, 16.2, 0.04)
  1411.  
  1412. MagicCircle4(BrickColor.new("Bright yellow"), RootPart.CFrame * cf(0, 0, 0), 1, 1, 1, 19.2, 19.2, 19.2, 0.03)
  1413.  
  1414. MagicWave4(BrickColor.new("Bright yellow"), cf(RootPart.Position) * cf(0, -1, 0) * euler(0, math.random(-50, 50), 0), 1, 1, 1, 0.5, 0.3, 0.5, 0.04)
  1415.  
  1416. MagicWave4(BrickColor.new("Cool yellow"), RootPart.CFrame * cf(0, -1, 0) * euler(0, math.random(-50, 50), 0), 1, 1, 1, 1, 0.5, 1, 0.05)
  1417. attack = true
  1418. chatfunc("Sunlight *Sunshine Blast*")
  1419. SpellActivate()
  1420.  
  1421. local Card = Instance.new('Part',Character)
  1422. Card.Transparency = 0.5
  1423. Card.Color = Color3.fromRGB(255,255,0)
  1424. Card.Size = Vector3.new(0.65,0.2,1.2)
  1425. Card.Material = "Neon"
  1426. Card.CFrame = handee.CFrame + Vector3.new(0,3,0)
  1427. CardMesh = Instance.new("BlockMesh",Card)
  1428. local gyrothing = Instance.new("BodyGyro",Card)
  1429. gyrothing.D = 100
  1430. gyrothing.P = 2000
  1431. gyrothing.MaxTorque = Vector3.new(4000000,4000000,4000000)
  1432. gyrothing.CFrame = CFrame.new(RootPart.Position,mouse.Hit.p)
  1433. local position = Instance.new("BodyPosition",Card)
  1434. position.D = 2350
  1435. position.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1436. cardmax = cardmax+1
  1437. cardpos = cardpos+1
  1438.  
  1439. for i = 0,2,0.16 do
  1440. swait()
  1441. gyrothing.CFrame = CFrame.new(RootPart.Position,mouse.Hit.p)
  1442. position.Position = Torso.Position + Vector3.new(10,3,0)
  1443. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 0.2)
  1444. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-80)),.2)
  1445. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)),.2)
  1446. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)),.2)
  1447. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.73, -1.0, 0) * CFrame.Angles(math.rad(-25), math.rad(-66), math.rad(-25)), 0.1)
  1448. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.6, -1.0, 0) * CFrame.Angles(math.rad(0), math.rad(-83), math.rad(0)), 0.1)
  1449. end
  1450.  
  1451. attack = false
  1452.  
  1453. for i = 1,65 do
  1454. position.Position = Torso.Position + Vector3.new(10-cardpos,cardpos,0)
  1455. --position.Position = Torso.Position + Vector3.new(0,cardpos,0)
  1456. swait(2.5)
  1457. gyrothing.CFrame = CFrame.new(RootPart.Position,mouse.Hit.p)
  1458. if math.random(1,2) == 1 then
  1459. Bullets(Card,math.random(0.9,1.1),g,math.random(320,420),6.1,false,false)
  1460. else
  1461. Bullets(Card,math.random(0.9,1.1),r,math.random(320,420),8.2,false,false)
  1462. end
  1463. end
  1464.  
  1465.  
  1466.  
  1467. Card:Destroy()
  1468. cardmax = cardmax-1
  1469. Humanoid.WalkSpeed = Humanoid.WalkSpeed+3.6
  1470. cardpos = cardpos-1
  1471. if Humanoid.WalkSpeed == 32 then
  1472. print('WalkSpeed Regained.')
  1473. end
  1474. end
  1475.  
  1476.  
  1477.  
  1478.  
  1479. function rotball()
  1480.  
  1481.  
  1482. so("http://roblox.com/asset/?id=925333540",Torso,1.1,1)
  1483. MagicBlock4(BrickColor.new("Cool yellow"), RootPart.CFrame * cf(0, 0, 0), 1, 1, 1, 16.2, 16.2, 16.2, 0.04)
  1484.  
  1485. MagicCircle4(BrickColor.new("Bright yellow"), RootPart.CFrame * cf(0, 0, 0), 1, 1, 1, 19.2, 19.2, 19.2, 0.03)
  1486.  
  1487. MagicWave4(BrickColor.new("Bright yellow"), cf(RootPart.Position) * cf(0, -1, 0) * euler(0, math.random(-50, 50), 0), 1, 1, 1, 0.5, 0.3, 0.5, 0.04)
  1488.  
  1489. MagicWave4(BrickColor.new("Cool yellow"), RootPart.CFrame * cf(0, -1, 0) * euler(0, math.random(-50, 50), 0), 1, 1, 1, 1, 0.5, 1, 0.05)
  1490. attack = true
  1491. chatfunc("Sunlight *Sunshine Needle*")
  1492. SpellActivate()
  1493.  
  1494.  
  1495. local thing = Instance.new("BodyGyro",RootPart)
  1496. thing.D = 350
  1497. thing.P = 6000
  1498. thing.MaxTorque = vt(100000,math.huge,0)
  1499. thing.CFrame = CFrame.new(RootPart.Position,mouse.Hit.p)
  1500. for i = 0,2,0.16 do
  1501. swait()
  1502. thing.CFrame = CFrame.new(RootPart.Position,mouse.Hit.p)
  1503. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 0.2)
  1504. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-80)),.2)
  1505. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)),.2)
  1506. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)),.2)
  1507. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.73, -1.0, 0) * CFrame.Angles(math.rad(-25), math.rad(-66), math.rad(-25)), 0.1)
  1508. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.6, -1.0, 0) * CFrame.Angles(math.rad(0), math.rad(-83), math.rad(0)), 0.1)
  1509. end
  1510.  
  1511.  
  1512. local beam = Instance.new("Part", workspace)
  1513. beam.BrickColor = BrickColor.new(g)
  1514. beam.FormFactor = "Custom"
  1515. beam.Material = "Neon"
  1516. beam.Transparency = 0.25
  1517. beam.Anchored = true
  1518. beam.Locked = false
  1519. beam.CanCollide = false
  1520. local Z = Instance.new("SpecialMesh",beam)
  1521. Z.MeshType = "Sphere"
  1522.  
  1523. local ray = Ray.new(handee.CFrame.p, (mouse.Hit.p - handee.CFrame.p).unit * 700)
  1524. local part, position = workspace:FindPartOnRay(ray, player.Character, false, true)
  1525. local distance = (handee.CFrame.p - position).magnitude
  1526. beam.CFrame = CFrame.new(handee.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  1527. beam.Size = Vector3.new(1, 1, distance)
  1528.  
  1529.  
  1530.  
  1531. for i = 1,6,0.1 do
  1532. swait()
  1533. thing.CFrame = CFrame.new(RootPart.Position,mouse.Hit.p)
  1534. beam.CFrame = CFrame.new((beam.CFrame.p + position) / 2, beam.CFrame.p) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0)
  1535. beam.Size = Vector3.new(1, 1, distance)
  1536. MagicBlock4(BrickColor.new("Cool yellow"), beam.CFrame * cf(0, 0, 0), 1, 1, 1, 16.2, 16.2, 16.2, 0.04)
  1537. MagicShockTrailAlt(BrickColor.new("Bright yellow"),beam.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10,10,5,-0.05,-0.05,25,0.005,math.random(1,2))
  1538. if math.random(1,2) == 1 then
  1539. beam.BrickColor = BrickColor.new(g)
  1540. else
  1541. beam.BrickColor = BrickColor.new(r)
  1542. end
  1543. end
  1544. attack = false
  1545. thing:Destroy()
  1546. beam:Destroy()
  1547.  
  1548.  
  1549. end
  1550.  
  1551.  
  1552.  
  1553. function Ldash()
  1554.  
  1555.  
  1556.  
  1557. evadecooldown = true
  1558. attack = true
  1559. so("http://www.roblox.com/asset/?id=707957812", Torso, 2.5, 1)
  1560.  
  1561.  
  1562.  
  1563.  
  1564.  
  1565.  
  1566. --+173.8*i
  1567. for i = 0,2,0.064 do
  1568. swait()
  1569. RootPart.Velocity = RootPart.CFrame.rightVector * -54
  1570. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(32)), 0.2)
  1571. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(-9),math.rad(-14)),.2)
  1572. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(77), math.rad(0), math.rad(70)),.2)
  1573. LW.C0 = clerp(LW.C0, CFrame.new(-1.0, 0.5, -0.55) * angles(math.rad(30), math.rad(0), math.rad(70)),.2)
  1574. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(12)), 0.2)
  1575. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(8)), 0.2)
  1576. end
  1577.  
  1578. attack = false
  1579. wait(0.13)
  1580. evadecooldown = false
  1581.  
  1582.  
  1583. end
  1584.  
  1585.  
  1586.  
  1587.  
  1588.  
  1589. function Rdash()
  1590.  
  1591.  
  1592.  
  1593. evadecooldown = true
  1594. attack = true
  1595. so("http://www.roblox.com/asset/?id=707957812", Torso, 2.5, 1)
  1596.  
  1597.  
  1598.  
  1599.  
  1600.  
  1601.  
  1602. --+173.8*i
  1603. for i = 0,2,0.064 do
  1604. swait()
  1605. RootPart.Velocity = RootPart.CFrame.rightVector * 54
  1606. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-32)), 0.2)
  1607. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(9),math.rad(14)),.2)
  1608. RW.C0 = clerp(RW.C0, CFrame.new(1.0, 0.5, -0.55) * angles(math.rad(30), math.rad(0), math.rad(-70)),.2)
  1609. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(77), math.rad(0), math.rad(-70)),.2)
  1610. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-8)), 0.2)
  1611. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-12)), 0.2)
  1612. end
  1613.  
  1614. attack = false
  1615. wait(0.13)
  1616. evadecooldown = false
  1617.  
  1618.  
  1619. end
  1620.  
  1621.  
  1622.  
  1623. mouse.Button1Down:connect(function(key)
  1624. if attack == false then
  1625. shoot()
  1626. end
  1627. end)
  1628.  
  1629.  
  1630.  
  1631.  
  1632. mouse.Button1Up:connect(function(key)
  1633. if shooting == true then
  1634. shooting = false
  1635. end
  1636. end)
  1637.  
  1638.  
  1639.  
  1640. mouse.KeyDown:connect(function(key)
  1641. if key == 'e' and attack == false and cardmax <= 5 then
  1642. SCB()
  1643. end
  1644. end)
  1645.  
  1646.  
  1647.  
  1648. mouse.KeyDown:connect(function(key)
  1649. if key == 'f' and attack == false then
  1650. Ldash()
  1651. end
  1652. end)
  1653.  
  1654.  
  1655.  
  1656. mouse.KeyDown:connect(function(key)
  1657. if key == 'g' and attack == false then
  1658. Rdash()
  1659. end
  1660. end)
  1661.  
  1662. mouse.KeyDown:connect(function(key)
  1663. if key == 'r' and attack == false then
  1664. rotball()
  1665. end
  1666. end)
  1667.  
  1668.  
  1669.  
  1670. local idk = 0
  1671.  
  1672.  
  1673.  
  1674. local f = 0
  1675. game:GetService("RunService"):BindToRenderStep("W0tT", 0, function()
  1676.  
  1677.  
  1678. Humanoid.MaxHealth = 250
  1679. f = f+1
  1680. if f >= 7 then
  1681. MagicBlock4(BrickColor.new("Bright yellow"), LeftArm.CFrame * cf(0, -1, 0), 1, 1, 1, 0.7, 0.7, 0.7, 0.05)
  1682. MagicCircle4(BrickColor.new("Bright yellow"), LeftArm.CFrame * cf(0, -1, 0), 1, 0.1, 1, 6, 0, 6, 0.1)
  1683. end
  1684.  
  1685. end)
  1686.  
  1687. Humanoid.Health = 250
  1688. while true do
  1689. swait()
  1690. sine = sine + change
  1691. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  1692. local velderp=RootPart.Velocity.y
  1693. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  1694. if attack==true or attack==false then
  1695. if attack==false then
  1696. idle=idle+1
  1697. else
  1698. idle=0
  1699. end
  1700. if idle>=500 then
  1701. if attack==false then
  1702. end
  1703. end
  1704.  
  1705.  
  1706.  
  1707. if RootPart.Velocity.y > 1 and hitfloor==nil then
  1708. Anim="Jump"
  1709.  
  1710.  
  1711.  
  1712.  
  1713.  
  1714.  
  1715. if attack==false then
  1716. change = 1
  1717.  
  1718. Humanoid.CameraOffset = Vector3.new(0,0,0)
  1719. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, -.15) * CFrame.Angles(math.rad(-13), math.rad(0), math.rad(0)), 0.1)
  1720. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-30+2.05*math.cos(sine/5)),math.rad(0),math.rad(0)),.1)
  1721. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-30+2.05*math.cos(sine/5)), math.rad(0), math.rad(50-2.05*math.cos(sine/5))), 0.1)
  1722. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30+2.05*math.cos(sine/5)), math.rad(0), math.rad(-50+2.05*math.cos(sine/5))), 0.1)
  1723.  
  1724. end
  1725. if attack==false then
  1726. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-25+3.05*math.cos(sine/5)), math.rad(0), math.rad(0)), 0.1)
  1727. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -.47, -0.7) * CFrame.Angles(math.rad(-12+3.05*math.cos(sine/5)), math.rad(-3), math.rad(0)), 0.1)
  1728. end
  1729. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  1730. Anim="Fall"
  1731. change = 1
  1732.  
  1733.  
  1734. if attack==false then
  1735. Humanoid.CameraOffset = Vector3.new(0,0,0)
  1736. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0.2) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(0)), 0.1)
  1737. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(20), math.rad(90)), 0.1)
  1738. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(-20), math.rad(-90)), 0.1)
  1739. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(40),math.rad(0),math.rad(0)),.1)
  1740.  
  1741. end
  1742. if attack==false or attack == true then
  1743. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-8), math.rad(3), math.rad(0)), 0.1)
  1744. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -.67, -0.4) * CFrame.Angles(math.rad(25), math.rad(0), math.rad(0)), 0.1)
  1745. end
  1746.  
  1747. elseif torvel<1 and hitfloor~=nil then
  1748. Anim="Idle"
  1749. change = 1.73
  1750. if attack==false and equip == false then
  1751. Humanoid.CameraOffset = Vector3.new(0,0,0)
  1752. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1-0.10*math.cos(sine/40), -0) * CFrame.Angles(math.rad(0), math.rad(30), math.rad(0)), 0.1)
  1753. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0+4*math.sin(sine/40)),math.rad(0),math.rad(-30)),0.1)
  1754.  
  1755.  
  1756. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5+0.07*math.sin(sine/40), 0) * angles(math.rad(-3+2*math.cos(sine/40)), math.rad(0+7*math.cos(sine/40)), math.rad(3+3.2*math.cos(sine/40))),0.1)
  1757. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5+0.07*math.sin(sine/40), 0) * angles(math.rad(-3+2*math.cos(sine/40)), math.rad(0-7*math.cos(sine/40)), math.rad(-3-3.2*math.cos(sine/40))),0.1)
  1758. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1+0.10*math.cos(sine/40), 0) * CFrame.Angles(math.rad(0), math.rad(2), math.rad(-3)), 0.1)
  1759.  
  1760. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1+0.10*math.cos(sine/40), 0) * CFrame.Angles(math.rad(0), math.rad(-2), math.rad(3)), 0.1)
  1761. end
  1762.  
  1763.  
  1764.  
  1765.  
  1766. elseif torvel>2 and torvel<4205 and hitfloor~=nil then
  1767. Anim="Walk"
  1768. change = 1 + Character.Humanoid.WalkSpeed/113
  1769. if attack==false and equip == false then
  1770. Humanoid.CameraOffset = Vector3.new(0,0,0)
  1771. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1-0.42*math.cos(sine/2.5), -.8) * angles(math.rad(-23), math.rad(0), math.rad(0)+ RootPart.RotVelocity.Y / 26), .1)
  1772. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-7+20*math.sin(sine/2.5)),math.rad(0),math.rad(0+5*math.sin(sine/5)) + RootPart.RotVelocity.Y / 13),.1)
  1773. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0+0.34*math.sin(sine/5)) * angles(math.rad(0-80*math.sin(sine/5))+ RootPart.RotVelocity.Y / -34, math.rad(0), math.rad(6+18*math.sin(sine/5))- RootPart.RotVelocity.Y / 34),.15)
  1774. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0-0.34*math.sin(sine/5))*angles(math.rad(0+80*math.sin(sine/5))+ RootPart.RotVelocity.Y / 34,math.rad(0),math.rad(-6+18*math.sin(sine/5))+ RootPart.RotVelocity.Y / -34),.15)
  1775.  
  1776.  
  1777. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1-0.24*math.cos(sine/5), 0.+0.21*math.cos(sine/5)) * CFrame.Angles(math.rad(-5-60*math.sin(sine/5)), math.rad(0)+ RootPart.RotVelocity.Y / 42, math.rad(0)+ RootPart.RotVelocity.Y / -54), 0.8)
  1778. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1+0.24*math.cos(sine/5),0.-0.21*math.cos(sine/5)) * CFrame.Angles(math.rad(-5+60*math.sin(sine/5)), math.rad(0)+ RootPart.RotVelocity.Y / 42, math.rad(0)- RootPart.RotVelocity.Y / 54), 0.8)
  1779. end
  1780.  
  1781. if attack==true and noleg == false then
  1782. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1-0.24*math.cos(sine/5), 0+0.32*math.sin(sine/5)) * CFrame.Angles(math.rad(0-65*math.sin(sine/5)), math.rad(3), math.rad(0)), 0.2)
  1783. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1+0.24*math.cos(sine/5), 0-0.32*math.sin(sine/5)) * CFrame.Angles(math.rad(0+65*math.sin(sine/5)), math.rad(-3), math.rad(0)), 0.2)
  1784. end
  1785.  
  1786. end
  1787. end
  1788.  
  1789.  
  1790.  
  1791. if 0 < #Effects then
  1792. for e = 1, #Effects do
  1793. if Effects[e] ~= nil then
  1794. local Thing = Effects[e]
  1795. if Thing ~= nil then
  1796. local Part = Thing[1]
  1797. local Mode = Thing[2]
  1798. local Delay = Thing[3]
  1799. local IncX = Thing[4]
  1800. local IncY = Thing[5]
  1801. local IncZ = Thing[6]
  1802. if Thing[1].Transparency <= 1 then
  1803. if Thing[2] == "Block1" then
  1804. Thing[1].CFrame = Thing[1].CFrame * euler(math.random(-80, 80), math.random(-80, 80), math.random(-80, 80))
  1805. Mesh = Thing[1]:FindFirstChild("Mesh")
  1806. if not Mesh then
  1807. Mesh = Instance.new("BlockMesh")
  1808. end
  1809. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  1810. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1811. elseif Thing[2] == "Cylinder" then
  1812. Mesh = Thing[1]:FindFirstChild("Mesh")
  1813. if not Mesh then
  1814. Mesh = Instance.new("BlockMesh")
  1815. end
  1816. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  1817. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1818. elseif Thing[2] == "Blood" then
  1819. Mesh = Thing[1]:FindFirstChild("Mesh")
  1820. if not Mesh then
  1821. Mesh = Instance.new("BlockMesh")
  1822. end
  1823. Thing[1].CFrame = Thing[1].CFrame * cf(0, 0.5, 0)
  1824. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  1825. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1826. elseif Thing[2] == "Elec" then
  1827. Mesh = Thing[1]:FindFirstChild("Mesh")
  1828. if not Mesh then
  1829. Mesh = Instance.new("BlockMesh")
  1830. end
  1831. Mesh.Scale = Mesh.Scale + vt(Thing[7], Thing[8], Thing[9])
  1832. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1833. elseif Thing[2] == "Disappear" then
  1834. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1835. end
  1836. else
  1837. Part.Parent = nil
  1838. Part:Destroy()
  1839. --game:GetService("Debris"):AddItem(Part, 0)
  1840. table.remove(Effects, e)
  1841. end
  1842. end
  1843. end
  1844. end
  1845. end
  1846.  
  1847. end
Add Comment
Please, Sign In to add comment