Dark_EccentricYT

Untitled

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