Advertisement
StarzoZero

roblox fe gaster blasters attempt

Jan 13th, 2019
552
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 28.62 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient()then error("Please run as a server script. Use h/ instead of hl/.")end;print("FE Compatibility: by StarzoZero");InternalData = {}
  2. do
  3. script.Parent = owner.Character
  4. local Event = Instance.new("RemoteEvent");Event.Name = "UserInput"
  5. local function NewFakeEvent()
  6. local Bind = Instance.new("BindableEvent")
  7. local Fake;Fake = {Connections = {},
  8. fakeEvent=true;
  9. Connect=function(self,Func)
  10. Bind.Event:connect(Func)
  11. self.Connections[Bind] = true
  12. return setmetatable({Connected = true},{
  13. __index = function (self,Index)
  14. if Index:lower() == "disconnect" then
  15. return function() Fake.Connections[Bind] = false;self.Connected = false end
  16. end
  17. return Fake[Index]
  18. end;
  19. __tostring = function() return "Connection" end;
  20. })
  21. end}
  22. Fake.connect = Fake.Connect;return Fake;
  23. end
  24. local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
  25. local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
  26. local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
  27. self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
  28. end};ContextActionService.UnBindAction = ContextActionService.BindAction
  29. local function TriggerEvent(self,Event,...)
  30. local Trigger = Mouse[Event]
  31. if Trigger and Trigger.fakeEvent and Trigger.Connections then
  32. for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end
  33. end
  34. end
  35. Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent
  36. Event.OnServerEvent:Connect(function(FiredBy,Input)
  37. if FiredBy.Name ~= owner.Name then return end
  38. if Input.MouseEvent then
  39. Mouse.Target = Input.Target;Mouse.Hit = Input.Hit
  40. else
  41. local Begin = Input.UserInputState == Enum.UserInputState.Begin
  42. if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") end
  43. for _,Action in pairs(ContextActionService.Actions) do
  44. for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end
  45. end
  46. Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
  47. UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
  48. end
  49. end)
  50. InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService
  51. Event.Parent = NLS([[
  52. local Player = owner;local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse()
  53. local Input = function(Input,gameProcessedEvent)
  54. if gameProcessedEvent then return end
  55. Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
  56. end
  57. UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input)
  58. local Hit,Target
  59. while wait(1/30) do
  60. if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
  61. Hit,Target = Mouse.Hit,Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
  62. end
  63. end
  64. ]],owner.Character)
  65. end
  66. RealGame = game;game = setmetatable({},{
  67. __index = function (self,Index)
  68. local Sandbox = function (Thing)
  69. if Thing:IsA("Player") then
  70. local RealPlayer = Thing
  71. return setmetatable({},{
  72. __index = function (self,Index)
  73. local Type = type(RealPlayer[Index])
  74. if Type == "function" then
  75. if Index:lower() == "getmouse" or Index:lower() == "mouse" then
  76. return function (self)return InternalData["Mouse"] end
  77. end
  78. return function (self,...)return RealPlayer[Index](RealPlayer,...) end
  79. end
  80. return RealPlayer[Index]
  81. end;
  82. __tostring = function(self) return RealPlayer.Name end
  83. })
  84. end
  85. end
  86. if RealGame[Index] then
  87. local Type = type(RealGame[Index])
  88. if Type == "function" then
  89. if Index:lower() == "getservice" or Index:lower() == "service" then
  90. return function (self,Service)
  91. local FakeServices = {
  92. ["players"] = function()
  93. return setmetatable({},{
  94. __index = function (self2,Index2)
  95. local RealService = RealGame:GetService(Service)
  96. local Type2 = type(Index2)
  97. if Type2 == "function" then
  98. return function (self,...) return RealService[Index2](RealService,...)end
  99. else
  100. if Index2:lower() == "localplayer" then return Sandbox(owner) end
  101. return RealService[Index2]
  102. end
  103. end;
  104. __tostring = function(self) return RealGame:GetService(Service).Name end
  105. })
  106. end;
  107. ["contextactionservice"] = function() return InternalData["ContextActionService"] end;
  108. ["userinputservice"] = function() return InternalData["UserInputService"] end;
  109. ["runservice"] = function()
  110. return setmetatable({},{
  111. __index = function(self2,Index2)
  112. local RealService = RealGame:GetService(Service)
  113. local Type2 = type(Index2)
  114. if Type2 == "function" then
  115. return function (self,...) return RealService[Index2](RealService,...) end
  116. else
  117. local RunServices = {
  118. ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) end end;
  119. ["renderstepped"] = function() return RealService["Stepped"] end
  120. }
  121. if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end
  122. return RealService[Index2]
  123. end
  124. end
  125. })
  126. end
  127. }
  128. if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end
  129. return RealGame:GetService(Service)
  130. end
  131. end
  132. return function (self,...) return RealGame[Index](RealGame,...) end
  133. else
  134. if game:GetService(Index) then return game:GetService(Index) end
  135. return RealGame[Index]
  136. end
  137. end
  138. return nil
  139. end
  140. });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("wanna have a bad time?")
  141.  
  142. --[[ Script Converted by WafflesAreVeryGood (Nobody#3907 on discord) ]]--
  143. local plr = game:GetService('Players').LocalPlayer
  144. local char = plr.Character
  145. local mouse = plr:GetMouse()
  146. --Converted with ttyyuu12345's model to script plugin v4
  147. function sandbox(var,func)
  148. local env = getfenv(func)
  149. local newenv = setmetatable({},{
  150. __index = function(self,k)
  151. if k=="script" then
  152. return var
  153. else
  154. return env[k]
  155. end
  156. end,
  157. })
  158. setfenv(func,newenv)
  159. return func
  160. end
  161. cors = {}
  162. mas = Instance.new("Model",game:GetService("Lighting"))
  163. Tool0 = Instance.new("Tool")
  164. Folder1 = Instance.new("Folder")
  165. Sound2 = Instance.new("Sound")
  166. Model3 = Instance.new("Model")
  167. Part4 = Instance.new("Part")
  168. SpecialMesh5 = Instance.new("SpecialMesh")
  169. ManualWeld6 = Instance.new("ManualWeld")
  170. ManualWeld7 = Instance.new("ManualWeld")
  171. ManualWeld8 = Instance.new("ManualWeld")
  172. WedgePart9 = Instance.new("WedgePart")
  173. Part10 = Instance.new("Part")
  174. SpecialMesh11 = Instance.new("SpecialMesh")
  175. Script12 = Instance.new("Script")
  176. Part13 = Instance.new("Part")
  177. Part15 = Instance.new("Part")
  178. ParticleEmitter16 = Instance.new("ParticleEmitter")
  179. Animation17 = Instance.new("Animation")
  180. Tool0.Name = "Gaster Blaster"
  181. Tool0.Parent = mas
  182. Tool0.TextureId = "rbxassetid://382220657"
  183. Tool0.ToolTip = "Gaster Blaster: Used By Sans"
  184. Tool0.CanBeDropped = false
  185. Folder1.Parent = Tool0
  186. Sound2.Name = "GBSound"
  187. Sound2.Parent = Folder1
  188. Sound2.SoundId = "rbxassetid://382265669"
  189. Sound2.Volume = 1
  190. Model3.Name = "GB"
  191. Model3.Parent = Folder1
  192. Model3.PrimaryPart = Part4
  193. Part4.Name = "Main"
  194. Part4.Parent = Model3
  195. Part4.Material = Enum.Material.SmoothPlastic
  196. Part4.BrickColor = BrickColor.new("Institutional white")
  197. Part4.Rotation = Vector3.new(178.669998, -0.049999997, 179.819992)
  198. Part4.Anchored = true
  199. Part4.CanCollide = false
  200. Part4.FormFactor = Enum.FormFactor.Custom
  201. Part4.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  202. 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)
  203. Part4.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  204. Part4.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  205. Part4.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  206. Part4.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  207. Part4.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  208. Part4.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  209. Part4.Color = Color3.new(0.972549, 0.972549, 0.972549)
  210. Part4.Position = Vector3.new(9.6476717, 212.837067, 62.5175667)
  211. Part4.Orientation = Vector3.new(1.32999992, -179.949997, -0.179999992)
  212. Part4.Color = Color3.new(0.972549, 0.972549, 0.972549)
  213. SpecialMesh5.Parent = Part4
  214. SpecialMesh5.MeshId = "http://www.roblox.com/asset/?id=14028428"
  215. SpecialMesh5.Scale = Vector3.new(4.23171806, 4.23171759, 4.23171663)
  216. SpecialMesh5.VertexColor = Vector3.new(1000000, 10000, 10000)
  217. SpecialMesh5.MeshType = Enum.MeshType.FileMesh
  218. SpecialMesh5.Scale = Vector3.new(4.23171806, 4.23171759, 4.23171663)
  219. ManualWeld6.Name = "Weld"
  220. ManualWeld6.Parent = Part4
  221. 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)
  222. 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)
  223. ManualWeld6.Part0 = Part4
  224. ManualWeld6.Part1 = nil
  225. ManualWeld7.Name = "Weld"
  226. ManualWeld7.Parent = Part4
  227. 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)
  228. 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)
  229. ManualWeld7.Part0 = Part4
  230. ManualWeld7.Part1 = nil
  231. ManualWeld8.Name = "Weld"
  232. ManualWeld8.Parent = Part4
  233. 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)
  234. 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)
  235. ManualWeld8.Part0 = Part4
  236. ManualWeld8.Part1 = WedgePart9
  237. WedgePart9.Parent = Model3
  238. WedgePart9.BrickColor = BrickColor.new("Institutional white")
  239. WedgePart9.Rotation = Vector3.new(45, 0, 0)
  240. WedgePart9.CanCollide = false
  241. WedgePart9.FormFactor = Enum.FormFactor.Symmetric
  242. WedgePart9.Size = Vector3.new(1.60000014, 1.5999999, 4.4000001)
  243. 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)
  244. WedgePart9.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  245. WedgePart9.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  246. WedgePart9.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  247. WedgePart9.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  248. WedgePart9.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  249. WedgePart9.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  250. WedgePart9.Color = Color3.new(0.972549, 0.972549, 0.972549)
  251. WedgePart9.Position = Vector3.new(9.59999466, 215.742599, 58.2514572)
  252. WedgePart9.Orientation = Vector3.new(45, 0, 0)
  253. WedgePart9.Color = Color3.new(0.972549, 0.972549, 0.972549)
  254. Part10.Name = "GBBeam"
  255. Part10.Parent = Folder1
  256. Part10.Material = Enum.Material.SmoothPlastic
  257. Part10.BrickColor = BrickColor.new("Institutional white")
  258. Part10.Rotation = Vector3.new(0, 90, 0)
  259. Part10.Anchored = true
  260. Part10.CanCollide = false
  261. Part10.FormFactor = Enum.FormFactor.Custom
  262. Part10.Size = Vector3.new(200, 6, 6)
  263. 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)
  264. Part10.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  265. Part10.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  266. Part10.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  267. Part10.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  268. Part10.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  269. Part10.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  270. Part10.Color = Color3.new(1, 1, 1)
  271. Part10.Position = Vector3.new(-2.50004816, 4.40002823, -1021.19995)
  272. Part10.Orientation = Vector3.new(0, 90, 0)
  273. Part10.Color = Color3.new(1, 1, 1)
  274. SpecialMesh11.Parent = Part10
  275. SpecialMesh11.MeshType = Enum.MeshType.Cylinder
  276. Script12.Parent = Part10
  277. Script12.Disabled = true
  278. Part13.Name = "HandFlame"
  279. Part13.Parent = Folder1
  280. Part13.Transparency = 1
  281. Part13.Rotation = Vector3.new(0, 0, -30)
  282. Part13.Anchored = true
  283. Part13.CanCollide = false
  284. Part13.FormFactor = Enum.FormFactor.Custom
  285. Part13.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  286. 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)
  287. Part13.Position = Vector3.new(-8.29995918, 203.950241, 50.9999504)
  288. Part13.Orientation = Vector3.new(0, 0, -30)
  289. Part15.Name = "HeadFlame"
  290. Part15.Parent = Folder1
  291. Part15.Transparency = 1
  292. Part15.Rotation = Vector3.new(0, 0, 79.6899948)
  293. Part15.Anchored = true
  294. Part15.CanCollide = false
  295. Part15.FormFactor = Enum.FormFactor.Custom
  296. Part15.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  297. 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)
  298. Part15.Position = Vector3.new(-10.0999317, 211.071381, 50.400013)
  299. Part15.Orientation = Vector3.new(0, 0, 79.6899948)
  300. ParticleEmitter16.Name = "Flame"
  301. ParticleEmitter16.Parent = Part15
  302. ParticleEmitter16.Transparency = NumberSequence.new(0.69999998807907,0.89999997615814,1)
  303. ParticleEmitter16.Rotation = NumberRange.new(-180, 180)
  304. ParticleEmitter16.Size = NumberSequence.new(0.5,0.5)
  305. ParticleEmitter16.Color = ColorSequence.new(Color3.new(0, 0.392157, 1),Color3.new(0, 0.392157, 1))
  306. ParticleEmitter16.LightEmission = 1
  307. ParticleEmitter16.Texture = "http://www.roblox.com/asset/?id=134531489"
  308. ParticleEmitter16.Acceleration = Vector3.new(0, 20, 0)
  309. ParticleEmitter16.Lifetime = NumberRange.new(0.60000002384186, 0.60000002384186)
  310. ParticleEmitter16.Rate = 500
  311. ParticleEmitter16.Speed = NumberRange.new(10, 10)
  312. ParticleEmitter16.Color = ColorSequence.new(Color3.new(0, 0.392157, 1),Color3.new(0, 0.392157, 1))
  313. Animation17.Name = "GBSend"
  314. Animation17.Parent = Folder1
  315. Animation17.AnimationId = "http://www.roblox.com/GBSend-item?id=388238523"
  316. for i,v in pairs(mas:GetChildren()) do
  317. v.Parent = game:GetService("Players").LocalPlayer.Character
  318. pcall(function() v:MakeJoints() end)
  319. end
  320. mas:Destroy()
  321. for i,v in pairs(cors) do
  322. spawn(function()
  323. pcall(v)
  324. end)
  325. end
  326. Tool0.RequiresHandle = false
  327. local tool = char["Gaster Blaster"]
  328. for i,v in pairs(tool.Folder:GetChildren()) do
  329. v.Parent = script
  330. end
  331. script.Parent = tool
  332. tool.Parent = plr.Backpack
  333. local hum=char:WaitForChild("Humanoid")
  334. local torso=char:WaitForChild("Torso")
  335. local hrp=char:WaitForChild("HumanoidRootPart")
  336. local check=false
  337. local dmg=false
  338. local combo=false
  339. local comboing=false
  340. local gb=script.GB
  341. local gbsend=hum:LoadAnimation(script.GBSend)
  342. local equipped=false
  343. local tool=script.Parent
  344. local closest=nil
  345. crosstab={
  346. [1]={math.cos(math.rad(45)),math.sin(math.rad(45))},
  347. [2]={math.cos(math.rad(135)),math.sin(math.rad(135))},
  348. [3]={math.cos(math.rad(225)),math.sin(math.rad(225))},
  349. [4]={math.cos(math.rad(315)),math.sin(math.rad(315))}
  350. }
  351. local attacklist={}
  352. local rignore={}
  353. local lgb=nil
  354. local rgb=nil
  355. local lgbbp=nil
  356. local rgbbp=nil
  357. local lgbbg=nil
  358. local rgbbg=nil
  359. local headf=nil
  360. local handf=nil
  361.  
  362. for _,v in pairs(workspace:GetChildren()) do
  363. if not v:FindFirstChild("Humanoid") then
  364. table.insert(rignore,v)
  365. end
  366. end
  367.  
  368. function Loop()
  369. coroutine.resume(coroutine.create(function()
  370. while equipped==true do
  371. repeat wait() until rgb:FindFirstChild("Main") and lgb:FindFirstChild("Main")
  372. rgb.Main.Velocity = Vector3.new()
  373. lgb.Main.Velocity = Vector3.new()
  374. rgbbp.Position=(hrp.CFrame*CFrame.new(10,5,0)).p
  375. lgbbp.Position=(hrp.CFrame*CFrame.new(-10,5,0)).p
  376. rgbbg.CFrame=CFrame.new(rgb.Main.Position,mouse.Hit.p)
  377. lgbbg.CFrame=CFrame.new(lgb.Main.Position,mouse.Hit.p)
  378. rgb.Main.Anchored = false
  379. lgb.Main.Anchored = false
  380. wait()
  381. end
  382. end))
  383. end
  384.  
  385. local function PrepareHurt(proj,dmgcheck,dmg)
  386. return --[[
  387. 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)
  388. for _,v in pairs(workspace:GetChildren()) do
  389. if v.Name=="GBBeam" then
  390. table.insert(rignore,v)
  391. end
  392. end
  393. local hit=workspace:FindPartOnRayWithIgnoreList(ray,rignore)
  394. if hit then
  395. if hit.Parent:FindFirstChild("Humanoid") and hit.Parent.Name~=plr.Name then
  396. if hit.Parent.Humanoid.Health>0 then
  397. hit.Parent.Humanoid:TakeDamage(dmg)
  398. end
  399. end
  400. end]]
  401. end
  402. function fakescript(beamasd)
  403. local script = {Parent = beamasd}
  404. local key=math.random()
  405.  
  406. function onTouched(hit)
  407. local human = hit.Parent:FindFirstChildOfClass("Humanoid")
  408. --Basically this just checks to see if it is a real player touching this brick.
  409. if (human ~= nil) and hit.Parent ~= char then --If it is a real player, then DESTROY THEM!
  410. print("y'all")
  411. human.Health = human.Health - 7.5*(1-script.Parent.Transparency)
  412. end
  413. end
  414.  
  415.  
  416. if (script.Parent ~= nil) and (script.Parent.className == "Part") then --Work if in a block
  417. connection = script.Parent.Touched:connect(onTouched)
  418. end
  419. local beam=script.Parent
  420. local bp = Instance.new("BodyPosition")
  421. bp.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  422. bp.Position = beam.Position
  423. bp.Parent = beam
  424. beam.Anchored = false
  425. coroutine.resume(coroutine.create(function()
  426. wait(0.3)
  427. for i=1,10 do
  428. if not beam:FindFirstChild"Mesh" then return end
  429. beam.Mesh.Scale=Vector3.new(1,1-(i/9),1-(i/9))
  430. wait()
  431. end
  432. end))
  433. wait(0.4)
  434. for i=1,15 do
  435. bp.Position = beam.Position
  436. beam.Transparency=i/15
  437. wait()
  438. end
  439. wait()
  440. beam:Destroy()
  441. end
  442. local function FIRE(obj,mode,thitpos)
  443. coroutine.resume(coroutine.create(function()
  444. if mode=="Normal" then
  445. obj.Main.CFrame=hrp.CFrame*CFrame.new(math.random(-100,100),math.random(0,200),math.random(-100,100))
  446. end
  447. local dmgcheck=false
  448. local gbsfx=script.GBSound:Clone()
  449. gbsfx.Parent=obj.Main
  450. gbsfx:Play()
  451. game.Debris:AddItem(gbsfx,3)
  452. wait(1)
  453. local beam=script.GBBeam:Clone()
  454. beam.CFrame=obj.Main.CFrame*CFrame.new(0,-3,1)
  455. spawn(function()
  456. fakescript(beam)
  457. end)
  458. beam.Size=Vector3.new(((beam.CFrame*CFrame.new(0,0,-beam.Size.X/2)).p-hitpos).magnitude*2,beam.Size.Y,beam.Size.Z)
  459. if mode~="Dual" then
  460. beam.CFrame=CFrame.new(beam.Position,thitpos)*CFrame.Angles(0,math.pi/2,0)
  461. else
  462. beam.CFrame=CFrame.new(beam.Position,mouse.Hit.p)*CFrame.Angles(0,math.pi/2,0)
  463. end
  464. beam.CFrame=beam.CFrame*CFrame.new(beam.Size.X/2,0,0)
  465. beam.Transparency=0
  466. local m = Instance.new("SpecialMesh")
  467. m.MeshType = "Cylinder"
  468. m.Parent = beam
  469. beam.Mesh.Scale=Vector3.new(1,1,1)
  470. --PrepareHurt(beam,dmgcheck,10)
  471. beam.Parent = char
  472. if mode=="Dual" then
  473. end
  474. end))
  475. end
  476.  
  477. local function Lerp(obj,kind,nb,total,spec)
  478. obj.Main.Anchored=false
  479. local bodyp=Instance.new("BodyPosition",obj.Main)
  480. bodyp.MaxForce=Vector3.new(math.huge,math.huge,math.huge)
  481. bodyp.D=100
  482. bodyp.P=1000
  483. local gyro=Instance.new("BodyGyro",obj.Main)
  484. gyro.MaxTorque=Vector3.new(10000,10000,10000)
  485. gyro.D=80
  486. if kind=="Front" then
  487. obj.CFrame=hrp.CFrame*CFrame.new(math.random(-10,10),math.random(0,5),-5)
  488. end
  489. coroutine.resume(coroutine.create(function()
  490. wait()
  491. gyro.CFrame=CFrame.new(obj.Main.Position,hitpos)
  492. wait(0.5)
  493. gyro.CFrame=CFrame.new(obj.Main.Position,hitpos)
  494. end))
  495. if kind=="Line" then
  496. if total==0 then
  497. bodyp.Position=hrp.Position+Vector3.new(0,10,0)
  498. elseif total==2 then
  499. if nb==1 then
  500. bodyp.Position=hrp.Position+Vector3.new(5,0,4)
  501. elseif nb==2 then
  502. bodyp.Position=hrp.Position+Vector3.new(-5,0,4)
  503. end
  504. elseif total==6 then
  505. if nb==1 then
  506. bodyp.Position=(hrp.CFrame*CFrame.new(-30,1,0)).p
  507. elseif nb==2 then
  508. bodyp.Position=(hrp.CFrame*CFrame.new(-20,1,0)).p
  509. elseif nb==3 then
  510. bodyp.Position=(hrp.CFrame*CFrame.new(-10,1,0)).p
  511. elseif nb==4 then
  512. bodyp.Position=(hrp.CFrame*CFrame.new(10,1,0)).p
  513. elseif nb==5 then
  514. bodyp.Position=(hrp.CFrame*CFrame.new(20,1,0)).p
  515. elseif nb==6 then
  516. bodyp.Position=(hrp.CFrame*CFrame.new(30,1,0)).p
  517. end
  518. end
  519. elseif kind=="Circle" then
  520. if spec=="Cross" then
  521. bodyp.Position=hitpos+Vector3.new(crosstab[nb][1],3/50,crosstab[nb][2])*50
  522. elseif spec=="Plus" or spec=="Total" then
  523. bodyp.Position=hitpos+Vector3.new(math.cos(math.rad(nb*(360/total))),3/50,math.sin(math.rad(nb*(360/total))))*50
  524. end
  525. end
  526. end
  527. function debris(obj, t)
  528. spawn(function()
  529. wait(t)
  530. for i = 1, 10 do
  531. for _,v in pairs(obj:GetChildren()) do
  532. if v:IsA("BasePart") and v.Transparency < 1 then
  533. v.Transparency = i/10
  534. end
  535. end
  536. game:GetService('RunService').Stepped:wait(0)
  537. end
  538. for _,v in pairs(obj:GetChildren()) do
  539. v:Destroy()
  540. end
  541. end)
  542. end
  543.  
  544. local function PrepareAttack(key)
  545. if check==false and hum.Health>0 then
  546. if closest==nil then
  547. hitpos=mouse.Hit.p
  548. else
  549. hitpos=closest.Torso.Position
  550. end
  551. if equipped==true then
  552. if key=="q" then
  553. combo=true
  554. elseif key=="e" then
  555. if combo==false then
  556. check=true
  557. hum.WalkSpeed=0
  558. gbsend:Play()
  559. local gbc=gb:Clone()
  560. gbc.Parent=char
  561. gbc.Main.CFrame=hrp.CFrame*CFrame.new(math.random(-100,100),math.random(0,200),math.random(-100,100))
  562. Lerp(gbc,"Line",0,0)
  563. FIRE(gbc,"Normal",hitpos)
  564. hum.WalkSpeed=30
  565. debris(gbc, 1.8)
  566. if comboing==false then
  567. wait(1)
  568. else
  569. wait(0.25)
  570. end
  571. check=false
  572. elseif combo==true and #attacklist<5 then
  573. table.insert(attacklist,key)
  574. end
  575. elseif key=="r" then
  576. if combo==false then
  577. check=true
  578. hum.WalkSpeed=0
  579. gbsend:Play()
  580. FIRE(lgb,"Dual",hitpos)
  581. FIRE(rgb,"Dual",hitpos)
  582. hum.WalkSpeed=30
  583. if comboing==false then
  584. wait(1.5)
  585. else
  586. wait(0.325)
  587. end
  588. check=false
  589. elseif combo==true and #attacklist<5 then
  590. table.insert(attacklist,key)
  591. end
  592. elseif key=="t" then
  593. if combo==false then
  594. check=true
  595. hum.WalkSpeed=0
  596. gbsend:Play()
  597. for i=1,12 do
  598. local gbc=gb:Clone()
  599. gbc.Parent=char
  600. debris(gbc, 1.8)
  601. gbc.Main.CFrame=hrp.CFrame*CFrame.new(math.random(-100,100),math.random(0,200),math.random(-100,100))
  602. coroutine.resume(coroutine.create(function()
  603. Lerp(gbc,"Circle",i,12,"Total")
  604. FIRE(gbc,"Normal",hitpos)
  605. end))
  606. wait(0.05)
  607. end
  608. hum.WalkSpeed=30
  609. if comboing==false then
  610. wait(7)
  611. else
  612. wait(5)
  613. end
  614. check=false
  615. elseif combo==true and #attacklist==4 then
  616. table.insert(attacklist,key)
  617. end
  618. elseif key=="f" then
  619. if combo==false then
  620. check=true
  621. hum.WalkSpeed=0
  622. gbsend:Play()
  623. for i=1,4 do
  624. local gbc=gb:Clone()
  625. gbc.Parent=char
  626. debris(gbc, 1.8)
  627. coroutine.resume(coroutine.create(function()
  628. Lerp(gbc,"Circle",i,4,"Plus")
  629. FIRE(gbc,"Normal",hitpos)
  630. end))
  631. end
  632. hum.WalkSpeed=30
  633. if comboing==false then
  634. wait(2)
  635. else
  636. wait(0.5)
  637. end
  638. check=false
  639. elseif combo==true and #attacklist<5 then
  640. table.insert(attacklist,key)
  641. end
  642. elseif key=="g" then
  643. if combo==false then
  644. check=true
  645. hum.WalkSpeed=0
  646. gbsend:Play()
  647. for i=1,4 do
  648. local gbc=gb:Clone()
  649. gbc.Parent=char
  650. debris(gbc, 1.8)
  651. coroutine.resume(coroutine.create(function()
  652. Lerp(gbc,"Circle",i,4,"Cross")
  653. FIRE(gbc,"Normal",hitpos)
  654. end))
  655. end
  656. hum.WalkSpeed=30
  657. if comboing==false then
  658. wait(2)
  659. else
  660. wait(0.5)
  661. end
  662. check=false
  663. elseif combo==true and #attacklist<5 then
  664. table.insert(attacklist,key)
  665. end
  666. elseif key=="h" then
  667. if combo==false then
  668. check=true
  669. hum.WalkSpeed=0
  670. gbsend:Play()
  671. for i=1,8 do
  672. local gbc=gb:Clone()
  673. gbc.Parent=char
  674. debris(gbc, 1.8)
  675. coroutine.resume(coroutine.create(function()
  676. Lerp(gbc,"Circle",i,8,"Total")
  677. FIRE(gbc,"Normal",hitpos)
  678. end))
  679. end
  680. hum.WalkSpeed=30
  681. if comboing==false then
  682. wait(2)
  683. else
  684. wait(.5)
  685. end
  686. check=false
  687. elseif combo==true and #attacklist<3 then
  688. table.insert(attacklist,key)
  689. end
  690. end
  691. end
  692. end
  693. end
  694.  
  695. mouse.KeyUp:connect(function(key)
  696. if key=="q" and combo==true and check==false then
  697. combo=false
  698. comboing=true
  699. for _,v in pairs(attacklist) do
  700. PrepareAttack(v)
  701. end
  702. attacklist={}
  703. comboing=false
  704. check=true
  705. wait(5)
  706. check=false
  707. end
  708. end)
  709.  
  710. mouse.KeyDown:connect(PrepareAttack)
  711.  
  712. tool.Equipped:connect(function()
  713. equipped=true
  714. lgb=script.GB:Clone()
  715. lgb.Parent=char
  716. lgb.Main.Anchored=true
  717. rgb=script.GB:Clone()
  718. rgb.Parent=char
  719. rgb.Main.Anchored=true
  720. rgbbp=Instance.new("BodyPosition")
  721. rgbbp.MaxForce=Vector3.new(math.huge,math.huge,math.huge)
  722. rgbbp.D=200
  723. rgbbp.Position = char.Torso.Position
  724. rgbbp.P=300
  725. lgbbp=Instance.new("BodyPosition")
  726. lgbbp.MaxForce=Vector3.new(math.huge,math.huge,math.huge)
  727. lgbbp.D=200
  728. lgbbp.P=300
  729. lgbbp.Position = char.Torso.Position
  730. lgbbg=Instance.new("BodyGyro")
  731. lgbbg.MaxTorque=Vector3.new(10000,10000,10000)
  732. lgbbg.D=400
  733. rgbbg=Instance.new("BodyGyro")
  734. rgbbg.MaxTorque=Vector3.new(10000,10000,10000)
  735. rgbbg.D=400
  736. headf=script.HeadFlame:Clone()
  737. headf.Parent=char
  738. headf.Anchored=false
  739. local headfw=Instance.new("Weld",headf)
  740. headfw.Part0=char.Head
  741. headfw.Part1=headf
  742. headfw.C0=CFrame.new(-0.125,0.22,-0.55)*CFrame.Angles(0,0,math.pi/2)
  743. handf=script.HandFlame:Clone()
  744. handf.Parent=char
  745. handf.Anchored=false
  746. local handfw=Instance.new("Weld",handf)
  747. handfw.Part0=char["Right Arm"]
  748. handfw.Part1=handf
  749. handfw.C0=CFrame.new(0,-1.25,0)*CFrame.Angles(0,0,-math.pi/4)
  750. rgbbp.Position = char.Torso.Position
  751. lgbbp.Position = char.Torso.Position
  752. rgbbp.Parent = rgb.Main
  753. lgbbp.Parent = lgb.Main
  754. lgbbg.Parent = lgb.Main
  755. rgbbg.Parent = rgb.Main
  756. Loop()
  757. end)
  758. tool.Unequipped:connect(function()
  759. equipped=false
  760. lgb:Destroy()
  761. rgb:Destroy()
  762. headf:Destroy()
  763. handf:Destroy()
  764. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement