Advertisement
Guest User

Untitled

a guest
May 26th, 2018
420
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 21.57 KB | None | 0 0
  1. --[[ Script Converted by WafflesAreVeryGood (Nobody#3907 on discord) ]]--
  2. local plr = game:GetService('Players').LocalPlayer
  3. local char = plr.Character
  4. local mouse = plr:GetMouse()
  5. --Converted with ttyyuu12345's model to script plugin v4
  6. function sandbox(var,func)
  7. local env = getfenv(func)
  8. local newenv = setmetatable({},{
  9. __index = function(self,k)
  10. if k=="script" then
  11. return var
  12. else
  13. return env[k]
  14. end
  15. end,
  16. })
  17. setfenv(func,newenv)
  18. return func
  19. end
  20. cors = {}
  21. mas = Instance.new("Model",game:GetService("Lighting"))
  22. Tool0 = Instance.new("Tool")
  23. Folder1 = Instance.new("Folder")
  24. Sound2 = Instance.new("Sound")
  25. Model3 = Instance.new("Model")
  26. Part4 = Instance.new("Part")
  27. SpecialMesh5 = Instance.new("SpecialMesh")
  28. ManualWeld6 = Instance.new("ManualWeld")
  29. ManualWeld7 = Instance.new("ManualWeld")
  30. ManualWeld8 = Instance.new("ManualWeld")
  31. WedgePart9 = Instance.new("WedgePart")
  32. Part10 = Instance.new("Part")
  33. SpecialMesh11 = Instance.new("SpecialMesh")
  34. Script12 = Instance.new("Script")
  35. Part13 = Instance.new("Part")
  36. ParticleEmitter14 = Instance.new("ParticleEmitter")
  37. Part15 = Instance.new("Part")
  38. ParticleEmitter16 = Instance.new("ParticleEmitter")
  39. Animation17 = Instance.new("Animation")
  40. Tool0.Name = "Gaster Blaster"
  41. Tool0.Parent = mas
  42. Tool0.TextureId = "rbxassetid://382220657"
  43. Tool0.ToolTip = "Gaster Blaster: Used By Sans"
  44. Tool0.CanBeDropped = false
  45. Folder1.Parent = Tool0
  46. Sound2.Name = "GBSound"
  47. Sound2.Parent = Folder1
  48. Sound2.SoundId = "rbxassetid://382265669"
  49. Sound2.Volume = 1
  50. Model3.Name = "GB"
  51. Model3.Parent = Folder1
  52. Model3.PrimaryPart = Part4
  53. Part4.Name = "Main"
  54. Part4.Parent = Model3
  55. Part4.Material = Enum.Material.SmoothPlastic
  56. Part4.BrickColor = BrickColor.new("Institutional white")
  57. Part4.Rotation = Vector3.new(178.669998, -0.049999997, 179.819992)
  58. Part4.Anchored = true
  59. Part4.CanCollide = false
  60. Part4.FormFactor = Enum.FormFactor.Custom
  61. Part4.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  62. Part4.CFrame = CFrame.new(9.6476717, 212.837067, 62.5175667, -0.999994874, -0.0030922927, -0.000849041739, -0.00307168509, 0.999724269, -0.0232850946, 0.000920811843, -0.0232823677, -0.99972856)
  63. Part4.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  64. Part4.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  65. Part4.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  66. Part4.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  67. Part4.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  68. Part4.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  69. Part4.Color = Color3.new(0.972549, 0.972549, 0.972549)
  70. Part4.Position = Vector3.new(9.6476717, 212.837067, 62.5175667)
  71. Part4.Orientation = Vector3.new(1.32999992, -179.949997, -0.179999992)
  72. Part4.Color = Color3.new(0.972549, 0.972549, 0.972549)
  73. SpecialMesh5.Parent = Part4
  74. SpecialMesh5.MeshId = "http://www.roblox.com/asset/?id=14028428"
  75. SpecialMesh5.Scale = Vector3.new(4.23171806, 4.23171759, 4.23171663)
  76. SpecialMesh5.VertexColor = Vector3.new(1000000, 10000, 10000)
  77. SpecialMesh5.MeshType = Enum.MeshType.FileMesh
  78. SpecialMesh5.Scale = Vector3.new(4.23171806, 4.23171759, 4.23171663)
  79. ManualWeld6.Name = "Weld"
  80. ManualWeld6.Parent = Part4
  81. ManualWeld6.C0 = CFrame.new(0, 0, 0, -0.999994874, -0.00307097379, 0.000981842401, -0.00309300236, 0.99972415, -0.0232822727, -0.000910072413, -0.0232851878, -0.999728441)
  82. ManualWeld6.C1 = CFrame.new(0.225479126, 3.69114685, 0.0936775208, -0.0154458769, 0.34394905, 0.93886131, 0.0187007096, 0.938908398, -0.343658656, -0.999705911, 0.0122492611, -0.0209343527)
  83. ManualWeld6.Part0 = Part4
  84. ManualWeld6.Part1 = nil
  85. ManualWeld7.Name = "Weld"
  86. ManualWeld7.Parent = Part4
  87. ManualWeld7.C0 = CFrame.new(0, 0, 0, -0.999994874, -0.00307097379, 0.000981842401, -0.00309300236, 0.99972415, -0.0232822727, -0.000910072413, -0.0232851878, -0.999728441)
  88. ManualWeld7.C1 = CFrame.new(0.141029358, 4.85009766, 0.616783142, -0.872494459, -0.293409586, 0.390722692, -0.0644136816, 0.861726344, 0.503268003, -0.484359652, 0.413930595, -0.770751119)
  89. ManualWeld7.Part0 = Part4
  90. ManualWeld7.Part1 = nil
  91. ManualWeld8.Name = "Weld"
  92. ManualWeld8.Parent = Part4
  93. ManualWeld8.C0 = CFrame.new(0, 0, 0, -0.999994874, -0.00307097379, 0.000981842401, -0.00309300236, 0.99972415, -0.0232822727, -0.000910072413, -0.0232851878, -0.999728441)
  94. ManualWeld8.C1 = CFrame.new(0.0476670265, 0.962097168, 5.07106781, 1, 3.98733209e-05, -1.65144629e-05, -1.65144629e-05, 0.707063794, 0.707141817, 3.98733209e-05, -0.707141817, 0.707063794)
  95. ManualWeld8.Part0 = Part4
  96. ManualWeld8.Part1 = WedgePart9
  97. WedgePart9.Parent = Model3
  98. WedgePart9.BrickColor = BrickColor.new("Institutional white")
  99. WedgePart9.Rotation = Vector3.new(45, 0, 0)
  100. WedgePart9.CanCollide = false
  101. WedgePart9.FormFactor = Enum.FormFactor.Symmetric
  102. WedgePart9.Size = Vector3.new(1.60000014, 1.5999999, 4.4000001)
  103. WedgePart9.CFrame = CFrame.new(9.59999466, 215.742599, 58.2514572, 1, 1.65165984e-05, -3.98718948e-05, -3.98723896e-05, 0.707119346, -0.707094252, 1.65153942e-05, 0.707094252, 0.707119346)
  104. WedgePart9.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  105. WedgePart9.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  106. WedgePart9.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  107. WedgePart9.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  108. WedgePart9.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  109. WedgePart9.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  110. WedgePart9.Color = Color3.new(0.972549, 0.972549, 0.972549)
  111. WedgePart9.Position = Vector3.new(9.59999466, 215.742599, 58.2514572)
  112. WedgePart9.Orientation = Vector3.new(45, 0, 0)
  113. WedgePart9.Color = Color3.new(0.972549, 0.972549, 0.972549)
  114. Part10.Name = "GBBeam"
  115. Part10.Parent = Folder1
  116. Part10.Material = Enum.Material.SmoothPlastic
  117. Part10.BrickColor = BrickColor.new("Institutional white")
  118. Part10.Material = Enum.Material.Neon
  119. Part10.Rotation = Vector3.new(0, 90, 0)
  120. Part10.Anchored = true
  121. Part10.CanCollide = false
  122. Part10.FormFactor = Enum.FormFactor.Custom
  123. Part10.Size = Vector3.new(200, 6, 6)
  124. Part10.CFrame = CFrame.new(-2.50004816, 4.40002823, -1021.19995, 5.34682295e-05, 1.23517841e-13, 1, -4.3159529e-05, 1, 2.30754016e-09, -1, -4.3159529e-05, 5.34682331e-05)
  125. Part10.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  126. Part10.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  127. Part10.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  128. Part10.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  129. Part10.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  130. Part10.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  131. Part10.Color = Color3.new(1, 1, 1)
  132. Part10.Position = Vector3.new(-2.50004816, 4.40002823, -1021.19995)
  133. Part10.Orientation = Vector3.new(0, 90, 0)
  134. Part10.Color = Color3.new(1, 1, 1)
  135. SpecialMesh11.Parent = Part10
  136. SpecialMesh11.MeshType = Enum.MeshType.Sphere
  137. Script12.Parent = Part10
  138. Script12.Disabled = true
  139. Part13.Name = "HandFlame"
  140. Part13.Parent = Folder1
  141. Part13.Transparency = 1
  142. Part13.Rotation = Vector3.new(0, 0, -30)
  143. Part13.Anchored = true
  144. Part13.CanCollide = false
  145. Part13.FormFactor = Enum.FormFactor.Custom
  146. Part13.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  147. Part13.CFrame = CFrame.new(-8.29995918, 203.950241, 50.9999504, 0.866004944, 0.500030637, -2.15781438e-05, -0.500030637, 0.866004944, 3.73764087e-05, 3.73764087e-05, -2.15781438e-05, 1)
  148. Part13.Position = Vector3.new(-8.29995918, 203.950241, 50.9999504)
  149. Part13.Orientation = Vector3.new(0, 0, -30)
  150. ParticleEmitter14.Name = "Flame"
  151. ParticleEmitter14.Parent = Part13
  152. ParticleEmitter14.Transparency = NumberSequence.new(0.69999998807907,0.69999998807907,0.94999998807907,1)
  153. ParticleEmitter14.Rotation = NumberRange.new(-180, 180)
  154. ParticleEmitter14.Size = NumberSequence.new(0.5,0.5)
  155. ParticleEmitter14.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(0, 0, 0))
  156. ParticleEmitter14.LightEmission = 1
  157. ParticleEmitter14.Texture = "http://www.roblox.com/asset/?id=298319954"
  158. ParticleEmitter14.ZOffset = 0.5
  159. ParticleEmitter14.Lifetime = NumberRange.new(4, 9)
  160. ParticleEmitter14.Rate = 500
  161. ParticleEmitter14.Speed = NumberRange.new(2, 2)
  162. ParticleEmitter14.VelocitySpread = 45
  163. ParticleEmitter14.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(0, 0, 0))
  164. local clone = ParticleEmitter14:Clone()
  165. clone.Size = NumberSequence.new(2,0)
  166. clone.Transparency = NumberSequence.new(0,0.5,0.9,1)
  167. clone.Parent = Part10
  168. Part15.Name = "HeadFlame"
  169. Part15.Parent = Folder1
  170. Part15.Transparency = 1
  171. Part15.Rotation = Vector3.new(0, 0, 79.6899948)
  172. Part15.Anchored = true
  173. Part15.CanCollide = false
  174. Part15.FormFactor = Enum.FormFactor.Custom
  175. Part15.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  176. Part15.CFrame = CFrame.new(-10.0999317, 211.071381, 50.400013, 0.178991079, -0.983850658, -4.29847787e-05, 0.983850658, 0.178991094, 3.88006174e-06, 3.87649106e-06, -4.29850988e-05, 1)
  177. Part15.Position = Vector3.new(-10.0999317, 211.071381, 50.400013)
  178. Part15.Orientation = Vector3.new(0, 0, 79.6899948)
  179. ParticleEmitter16.Name = "Flame"
  180. ParticleEmitter16.Parent = Part15
  181. ParticleEmitter16.Transparency = NumberSequence.new(0.69999998807907,0.89999997615814,1)
  182. ParticleEmitter16.Rotation = NumberRange.new(-180, 180)
  183. ParticleEmitter16.Size = NumberSequence.new(0.5,0.5)
  184. ParticleEmitter16.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(1, 0, 0))
  185. ParticleEmitter16.LightEmission = 1
  186. ParticleEmitter16.Texture = "http://www.roblox.com/asset/?id=134531489"
  187. ParticleEmitter16.Acceleration = Vector3.new(0, 20, 0)
  188. ParticleEmitter16.Lifetime = NumberRange.new(0.60000002384186, 0.60000002384186)
  189. ParticleEmitter16.Rate = 500
  190. ParticleEmitter16.Speed = NumberRange.new(10, 10)
  191. ParticleEmitter16.Color = ColorSequence.new(Color3.new(1, 0, 0),Color3.new(0, 0, 0))
  192. Animation17.Name = "GBSend"
  193. Animation17.Parent = Folder1
  194. Animation17.AnimationId = "http://www.roblox.com/GBSend-item?id=388238523"
  195. for i,v in pairs(mas:GetChildren()) do
  196. v.Parent = game:GetService("Players").LocalPlayer.Character
  197. pcall(function() v:MakeJoints() end)
  198. end
  199. mas:Destroy()
  200. for i,v in pairs(cors) do
  201. spawn(function()
  202. pcall(v)
  203. end)
  204. end
  205. Tool0.RequiresHandle = false
  206. local tool = char["Gaster Blaster"]
  207. for i,v in pairs(tool.Folder:GetChildren()) do
  208. v.Parent = script
  209. end
  210. script.Parent = tool
  211. tool.Parent = plr.Backpack
  212. local hum=char:WaitForChild("Humanoid")
  213. local torso=char:WaitForChild("Torso")
  214. local hrp=char:WaitForChild("HumanoidRootPart")
  215. local check=false
  216. local dmg=false
  217. local combo=false
  218. local comboing=false
  219. local gb=script.GB
  220. local gbsend=hum:LoadAnimation(script.GBSend)
  221. local equipped=false
  222. local tool=script.Parent
  223. local closest=nil
  224. crosstab={
  225. [1]={math.cos(math.rad(45)),math.sin(math.rad(45))},
  226. [2]={math.cos(math.rad(135)),math.sin(math.rad(135))},
  227. [3]={math.cos(math.rad(225)),math.sin(math.rad(225))},
  228. [4]={math.cos(math.rad(315)),math.sin(math.rad(315))}
  229. }
  230. local attacklist={}
  231. local rignore={}
  232. local lgb=nil
  233. local rgb=nil
  234. local lgbbp=nil
  235. local rgbbp=nil
  236. local lgbbg=nil
  237. local rgbbg=nil
  238. local headf=nil
  239. local handf=nil
  240.  
  241. for _,v in pairs(workspace:GetChildren()) do
  242. if not v:FindFirstChild("Humanoid") then
  243. table.insert(rignore,v)
  244. end
  245. end
  246.  
  247. function Loop()
  248. coroutine.resume(coroutine.create(function()
  249. while equipped==true do
  250. repeat wait() until rgb:FindFirstChild("Main") and lgb:FindFirstChild("Main")
  251. rgb.Main.Velocity = Vector3.new()
  252. lgb.Main.Velocity = Vector3.new()
  253. rgbbp.Position=(hrp.CFrame*CFrame.new(10,5,0)).p
  254. lgbbp.Position=(hrp.CFrame*CFrame.new(-10,5,0)).p
  255. rgbbg.CFrame=CFrame.new(rgb.Main.Position,mouse.Hit.p)
  256. lgbbg.CFrame=CFrame.new(lgb.Main.Position,mouse.Hit.p)
  257. rgb.Main.Anchored = false
  258. lgb.Main.Anchored = false
  259. wait()
  260. end
  261. end))
  262. end
  263.  
  264. local function PrepareHurt(proj,dmgcheck,dmg)
  265. return --[[
  266. local ray=Ray.new((proj.CFrame*CFrame.new(-proj.Size.X/2,0,0)).p,(hitpos-(proj.CFrame*CFrame.new(-proj.Size.X/2,0,0)).p).unit*100)
  267. for _,v in pairs(workspace:GetChildren()) do
  268. if v.Name=="GBBeam" then
  269. table.insert(rignore,v)
  270. end
  271. end
  272. local hit=workspace:FindPartOnRayWithIgnoreList(ray,rignore)
  273. if hit then
  274. if hit.Parent:FindFirstChild("Humanoid") and hit.Parent.Name~=plr.Name then
  275. if hit.Parent.Humanoid.Health>0 then
  276. hit.Parent.Humanoid:TakeDamage(dmg)
  277. end
  278. end
  279. end]]
  280. end
  281. function fakescript(beamasd)
  282. local script = {Parent = beamasd}
  283. local key=math.random()
  284.  
  285. function onTouched(hit)
  286. local human = hit.Parent:FindFirstChildOfClass("Humanoid")
  287. --Basically this just checks to see if it is a real player touching this brick.
  288. if (human ~= nil) and hit.Parent ~= char then --If it is a real player, then DESTROY THEM!
  289. print("y'all")
  290. human.Health = human.Health - 7.5*(1-script.Parent.Transparency)
  291. end
  292. end
  293.  
  294.  
  295. if (script.Parent ~= nil) and (script.Parent.className == "Part") then --Work if in a block
  296. connection = script.Parent.Touched:connect(onTouched)
  297. end
  298. local beam=script.Parent
  299. local bp = Instance.new("BodyPosition")
  300. bp.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  301. bp.Position = beam.Position
  302. bp.Parent = beam
  303. beam.Anchored = false
  304. coroutine.resume(coroutine.create(function()
  305. wait(0.3)
  306. for i=1,10 do
  307. if not beam:FindFirstChild"Mesh" then return end
  308. beam.Mesh.Scale=Vector3.new(1,1-(i/9),1-(i/9))
  309. wait()
  310. end
  311. end))
  312. wait(0.4)
  313. for i=1,15 do
  314. bp.Position = beam.Position
  315. beam.Transparency=i/15
  316. wait()
  317. end
  318. wait()
  319. beam:Destroy()
  320. end
  321. local function FIRE(obj,mode,thitpos)
  322. coroutine.resume(coroutine.create(function()
  323. if mode=="Normal" then
  324. obj.Main.CFrame=hrp.CFrame*CFrame.new(math.random(-100,100),math.random(0,200),math.random(-100,100))
  325. end
  326. local dmgcheck=false
  327. local gbsfx=script.GBSound:Clone()
  328. gbsfx.Parent=obj.Main
  329. gbsfx:Play()
  330. game.Debris:AddItem(gbsfx,3)
  331. wait(1)
  332. local beam=script.GBBeam:Clone()
  333. beam.CFrame=obj.Main.CFrame*CFrame.new(0,-3,1)
  334. spawn(function()
  335. fakescript(beam)
  336. end)
  337. beam.Size=Vector3.new(((beam.CFrame*CFrame.new(0,0,-beam.Size.X/2)).p-hitpos).magnitude*2,beam.Size.Y,beam.Size.Z)
  338. if mode~="Dual" then
  339. beam.CFrame=CFrame.new(beam.Position,thitpos)*CFrame.Angles(0,math.pi/2,0)
  340. else
  341. beam.CFrame=CFrame.new(beam.Position,mouse.Hit.p)*CFrame.Angles(0,math.pi/2,0)
  342. end
  343. beam.CFrame=beam.CFrame*CFrame.new(beam.Size.X/2,0,0)
  344. beam.Transparency=0
  345. local m = Instance.new("SpecialMesh")
  346. beam.BrickColor = BrickColor.Red()
  347. m.MeshType = "Sphere"
  348. m.Parent = beam
  349. beam.Mesh.Scale=Vector3.new(1,1,1)
  350. --PrepareHurt(beam,dmgcheck,10)
  351. beam.Parent = char
  352. if mode=="Dual" then
  353. end
  354. end))
  355. end
  356.  
  357. local function Lerp(obj,kind,nb,total,spec)
  358. obj.Main.Anchored=false
  359. local bodyp=Instance.new("BodyPosition",obj.Main)
  360. bodyp.MaxForce=Vector3.new(math.huge,math.huge,math.huge)
  361. bodyp.D=100
  362. bodyp.P=1000
  363. local gyro=Instance.new("BodyGyro",obj.Main)
  364. gyro.MaxTorque=Vector3.new(10000,10000,10000)
  365. gyro.D=80
  366. if kind=="Front" then
  367. obj.CFrame=hrp.CFrame*CFrame.new(math.random(-10,10),math.random(0,5),-5)
  368. end
  369. coroutine.resume(coroutine.create(function()
  370. wait()
  371. gyro.CFrame=CFrame.new(obj.Main.Position,hitpos)
  372. wait(0.5)
  373. gyro.CFrame=CFrame.new(obj.Main.Position,hitpos)
  374. end))
  375. if kind=="Line" then
  376. if total==0 then
  377. bodyp.Position=hrp.Position+Vector3.new(0,10,0)
  378. elseif total==2 then
  379. if nb==1 then
  380. bodyp.Position=hrp.Position+Vector3.new(5,0,4)
  381. elseif nb==2 then
  382. bodyp.Position=hrp.Position+Vector3.new(-5,0,4)
  383. end
  384. elseif total==6 then
  385. if nb==1 then
  386. bodyp.Position=(hrp.CFrame*CFrame.new(-30,1,0)).p
  387. elseif nb==2 then
  388. bodyp.Position=(hrp.CFrame*CFrame.new(-20,1,0)).p
  389. elseif nb==3 then
  390. bodyp.Position=(hrp.CFrame*CFrame.new(-10,1,0)).p
  391. elseif nb==4 then
  392. bodyp.Position=(hrp.CFrame*CFrame.new(10,1,0)).p
  393. elseif nb==5 then
  394. bodyp.Position=(hrp.CFrame*CFrame.new(20,1,0)).p
  395. elseif nb==6 then
  396. bodyp.Position=(hrp.CFrame*CFrame.new(30,1,0)).p
  397. end
  398. end
  399. elseif kind=="Circle" then
  400. if spec=="Cross" then
  401. bodyp.Position=hitpos+Vector3.new(crosstab[nb][1],3/50,crosstab[nb][2])*50
  402. elseif spec=="Plus" or spec=="Total" then
  403. bodyp.Position=hitpos+Vector3.new(math.cos(math.rad(nb*(360/total))),3/50,math.sin(math.rad(nb*(360/total))))*50
  404. end
  405. end
  406. end
  407. function debris(obj, t)
  408. spawn(function()
  409. wait(t)
  410. for i = 1, 10 do
  411. for _,v in pairs(obj:GetChildren()) do
  412. if v:IsA("BasePart") and v.Transparency < 1 then
  413. v.Transparency = i/10
  414. end
  415. end
  416. game:GetService('RunService').Stepped:wait(0)
  417. end
  418. for _,v in pairs(obj:GetChildren()) do
  419. v:Destroy()
  420. end
  421. end)
  422. end
  423. hum.MaxHealth = math.huge
  424. hum.MaxHealth = math.huge
  425. local function PrepareAttack(key)
  426. if check==false and hum.Health>0 then
  427. if closest==nil then
  428. hitpos=mouse.Hit.p
  429. else
  430. hitpos=closest.Torso.Position
  431. end
  432. if equipped==true then
  433. if key=="q" then
  434. combo=true
  435. elseif key=="e" then
  436. if combo==false then
  437. check=true
  438. hum.WalkSpeed=0
  439. gbsend:Play()
  440. local gbc=gb:Clone()
  441. gbc.Parent=char
  442. gbc.Main.CFrame=hrp.CFrame*CFrame.new(math.random(-100,100),math.random(0,200),math.random(-100,100))
  443. Lerp(gbc,"Line",0,0)
  444. FIRE(gbc,"Normal",hitpos)
  445. hum.WalkSpeed=30
  446. debris(gbc, 1.8)
  447. if comboing==false then
  448. wait(1)
  449. else
  450. wait(0.25)
  451. end
  452. check=false
  453. elseif combo==true and #attacklist<5 then
  454. table.insert(attacklist,key)
  455. end
  456. elseif key=="r" then
  457. if combo==false then
  458. check=true
  459. hum.WalkSpeed=0
  460. gbsend:Play()
  461. FIRE(lgb,"Dual",hitpos)
  462. FIRE(rgb,"Dual",hitpos)
  463. hum.WalkSpeed=30
  464. if comboing==false then
  465. wait(1.5)
  466. else
  467. wait(0.325)
  468. end
  469. check=false
  470. elseif combo==true and #attacklist<5 then
  471. table.insert(attacklist,key)
  472. end
  473. elseif key=="t" then
  474. if combo==false then
  475. check=true
  476. hum.WalkSpeed=0
  477. gbsend:Play()
  478. for i=1,12 do
  479. local gbc=gb:Clone()
  480. gbc.Parent=char
  481. debris(gbc, 1.8)
  482. gbc.Main.CFrame=hrp.CFrame*CFrame.new(math.random(-100,100),math.random(0,200),math.random(-100,100))
  483. coroutine.resume(coroutine.create(function()
  484. Lerp(gbc,"Circle",i,12,"Total")
  485. FIRE(gbc,"Normal",hitpos)
  486. end))
  487. wait(0.05)
  488. end
  489. hum.WalkSpeed=30
  490. if comboing==false then
  491. wait(7)
  492. else
  493. wait(5)
  494. end
  495. check=false
  496. elseif combo==true and #attacklist==4 then
  497. table.insert(attacklist,key)
  498. end
  499. elseif key=="f" then
  500. if combo==false then
  501. check=true
  502. hum.WalkSpeed=0
  503. gbsend:Play()
  504. for i=1,4 do
  505. local gbc=gb:Clone()
  506. gbc.Parent=char
  507. debris(gbc, 1.8)
  508. coroutine.resume(coroutine.create(function()
  509. Lerp(gbc,"Circle",i,4,"Plus")
  510. FIRE(gbc,"Normal",hitpos)
  511. end))
  512. end
  513. hum.WalkSpeed=30
  514. if comboing==false then
  515. wait(2)
  516. else
  517. wait(0.5)
  518. end
  519. check=false
  520. elseif combo==true and #attacklist<5 then
  521. table.insert(attacklist,key)
  522. end
  523. elseif key=="g" then
  524. if combo==false then
  525. check=true
  526. hum.WalkSpeed=0
  527. gbsend:Play()
  528. for i=1,4 do
  529. local gbc=gb:Clone()
  530. gbc.Parent=char
  531. debris(gbc, 1.8)
  532. coroutine.resume(coroutine.create(function()
  533. Lerp(gbc,"Circle",i,4,"Cross")
  534. FIRE(gbc,"Normal",hitpos)
  535. end))
  536. end
  537. hum.WalkSpeed=30
  538. if comboing==false then
  539. wait(2)
  540. else
  541. wait(0.5)
  542. end
  543. check=false
  544. elseif combo==true and #attacklist<5 then
  545. table.insert(attacklist,key)
  546. end
  547. elseif key=="h" then
  548. if combo==false then
  549. check=true
  550. hum.WalkSpeed=0
  551. gbsend:Play()
  552. for i=1,8 do
  553. local gbc=gb:Clone()
  554. gbc.Parent=char
  555. debris(gbc, 1.8)
  556. coroutine.resume(coroutine.create(function()
  557. Lerp(gbc,"Circle",i,8,"Total")
  558. FIRE(gbc,"Normal",hitpos)
  559. end))
  560. end
  561. hum.WalkSpeed=30
  562. if comboing==false then
  563. wait(2)
  564. else
  565. wait(.5)
  566. end
  567. check=false
  568. elseif combo==true and #attacklist<3 then
  569. table.insert(attacklist,key)
  570. end
  571. end
  572. end
  573. end
  574. end
  575.  
  576. mouse.KeyUp:connect(function(key)
  577. if key=="q" and combo==true and check==false then
  578. combo=false
  579. comboing=true
  580. for _,v in pairs(attacklist) do
  581. PrepareAttack(v)
  582. end
  583. attacklist={}
  584. comboing=false
  585. check=true
  586. wait(5)
  587. check=false
  588. end
  589. end)
  590.  
  591. mouse.KeyDown:connect(PrepareAttack)
  592.  
  593. tool.Equipped:connect(function()
  594. equipped=true
  595. lgb=script.GB:Clone()
  596. lgb.Parent=char
  597. lgb.Main.Anchored=true
  598. rgb=script.GB:Clone()
  599. rgb.Parent=char
  600. rgb.Main.Anchored=true
  601. rgbbp=Instance.new("BodyPosition")
  602. rgbbp.MaxForce=Vector3.new(math.huge,math.huge,math.huge)
  603. rgbbp.D=200
  604. rgbbp.Position = char.Torso.Position
  605. rgbbp.P=300
  606. lgbbp=Instance.new("BodyPosition")
  607. lgbbp.MaxForce=Vector3.new(math.huge,math.huge,math.huge)
  608. lgbbp.D=200
  609. lgbbp.P=300
  610. lgbbp.Position = char.Torso.Position
  611. lgbbg=Instance.new("BodyGyro")
  612. lgbbg.MaxTorque=Vector3.new(10000,10000,10000)
  613. lgbbg.D=400
  614. rgbbg=Instance.new("BodyGyro")
  615. rgbbg.MaxTorque=Vector3.new(10000,10000,10000)
  616. rgbbg.D=400
  617. headf=script.HeadFlame:Clone()
  618. headf.Parent=char
  619. headf.Anchored=false
  620. local headfw=Instance.new("Weld",headf)
  621. headfw.Part0=char.Head
  622. headfw.Part1=headf
  623. headfw.C0=CFrame.new(-0.125,0.22,-0.55)*CFrame.Angles(0,0,math.pi/2)
  624. handf=script.HandFlame:Clone()
  625. handf.Parent=char
  626. handf.Anchored=false
  627. local handfw=Instance.new("Weld",handf)
  628. handfw.Part0=char["Right Arm"]
  629. handfw.Part1=handf
  630. handfw.C0=CFrame.new(0,-1.25,0)*CFrame.Angles(0,0,-math.pi/4)
  631. rgbbp.Position = char.Torso.Position
  632. lgbbp.Position = char.Torso.Position
  633. rgbbp.Parent = rgb.Main
  634. lgbbp.Parent = lgb.Main
  635. lgbbg.Parent = lgb.Main
  636. rgbbg.Parent = rgb.Main
  637. Loop()
  638. end)
  639. tool.Unequipped:connect(function()
  640. equipped=false
  641. lgb:Destroy()
  642. rgb:Destroy()
  643. headf:Destroy()
  644. handf:Destroy()
  645. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement