Ganz_the_Skeleton

Sans

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