PasterXIV

Untitled

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