Advertisement
plytalent

knife fe

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