Advertisement
Guest User

Untitled

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