Advertisement
memberhero

FE Magic script

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