SHARE
TWEET

okk

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