Advertisement
Guest User

Untitled

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