Advertisement
5325325325

Untitled

Jul 10th, 2019
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 31.58 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient()then error("Please run as a server script. Use h/ instead of hl/.")end;print("FE Compatibility by WaverlyCole & Fireboltofdeath");print("https://github.com/WaverlyCole/FE-Compatibility-VoidSb-")
  2. local Wrapper = {};Wrapper.Fake = {};Wrapper.Real = {};Wrapper.Data = {};
  3. local sGame = game;local sScript = script;local sOwner = owner;local sInstance = Instance;local sLoadLibrary = LoadLibrary
  4. Wrapper.Event = Instance.new("RemoteEvent");Wrapper.Event.Name = "UserInput";
  5. Wrapper.CreateObject = function(connections, index)
  6. local proxy = newproxy (true);local meta = getmetatable (proxy);
  7. local runbind = function (self, i, ...) connections[i]:Fire (...); end;
  8. while (#connections > 0) do connections[table.remove(connections, 1)] = Instance.new ('BindableEvent');end;
  9. meta.__index = function (self, i)
  10. if (i == 'TriggerEvent') then return runbind end;
  11. return connections[i] and connections[i].Event or index[i];
  12. end;
  13. meta.__newindex = index;meta.__metatable = false;return proxy
  14. end;
  15. Wrapper.Mouse = Wrapper.CreateObject({"KeyUp","KeyDown","Button1Down","Button1Up","Move","Button2Down","Button2Up"},{["Target"] = nil;["Hit"] = CFrame.new()})
  16. Wrapper.UserInputService = Wrapper.CreateObject({"InputBegan","InputEnded"},{})
  17. Wrapper.ContextActionService = {Actions={};BindAction = function(self,actionName,Func,touch,...)self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil end;UnBindAction = function(self,actionName,Func,touch,...)self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil end};
  18. Wrapper.Sandbox = function(...)
  19. local Unwrap = {...};
  20. for obi = 1,#Unwrap do
  21. local Object = Unwrap[obi];
  22. if (Wrapper.Fake[Object] == nil and Wrapper.Real[Object] == nil) then
  23. local Type = typeof(Object);local Replacement = Object;
  24. if (Type == "function") then
  25. Replacement = function(...)
  26. local IsRoblox = not (pcall(function() string.dump(Object) end))
  27. if IsRoblox then
  28. return Object(Wrapper.Unsandbox(...))
  29. end
  30. return Object(Wrapper.Sandbox(...))
  31. end
  32. elseif (Type == "table") then
  33. Replacement = {};
  34. setmetatable(Replacement, {
  35. __index = function(self, i)
  36. return Wrapper.Sandbox(Object[Wrapper.Unsandbox(i)])
  37. end,
  38. __newindex = function(self,i,v)
  39. Object[Wrapper.Unsandbox(i)] = Wrapper.Unsandbox(v)
  40. end;
  41. })
  42. elseif (Type == "Instance") then
  43. Replacement = newproxy(true);
  44. local Mt = getmetatable(Replacement);
  45. Mt.__namecall = function(self, ...)
  46. local Pack = {...};local Name = Pack[#Pack];table.remove(Pack, #Pack);
  47. local Rest = nil;pcall(function()Rest = Object[Name];end);
  48. for g, x in pairs (Wrapper.InstanceMT["GET"]) do
  49. if (Object:IsA(g) or g == "Global") then
  50. for t, v in pairs(x) do
  51. for str in string.gmatch(t .. ",", "(%w+),") do
  52. if (Name == str) then
  53. if typeof(v) == "function" then
  54. return Wrapper.Sandbox(v(Wrapper.Unsandbox(self), Wrapper.Unsandbox(unpack(Pack))))
  55. else
  56. return v;
  57. end
  58. end
  59. end
  60. end
  61. end
  62. end
  63. if (Rest == nil) then
  64. if Wrapper.Sandbox(sGame):GetService(unpack(Pack)) then return Wrapper.Sandbox(sGame):GetService(unpack(Pack))end;
  65. return Wrapper.Sandbox(Object[Name]);
  66. elseif (typeof(Rest) == "function") then
  67. return Wrapper.Sandbox(Rest(Wrapper.Unsandbox(self), Wrapper.Unsandbox(unpack(Pack))))
  68. end
  69. return Wrapper.Sandbox(Object[Name]);
  70. end
  71. Mt.__index = function(self, i)
  72. local Rest = nil;pcall(function()Rest = Object[i];end)
  73. for g, x in pairs (Wrapper.InstanceMT["GET"]) do
  74. if (Object:IsA(g) or g == "Global") then
  75. for t, v in pairs(x) do
  76. for str in string.gmatch(t .. ",", "(%w+),") do
  77. if (i == str) then
  78. if typeof(v) == "function" then
  79. return function(...)return Wrapper.Sandbox(v(Wrapper.Unsandbox(self), Wrapper.Unsandbox(...)))end;
  80. else
  81. return v;
  82. end
  83. end
  84. end
  85. end
  86. end
  87. end
  88. if (Object:IsA("Sound") and i == "PlaybackLoudness") then return Wrapper.SoundLoudness[Wrapper.Unsandbox(Object)];end;
  89. if (Rest == nil) then
  90. if Wrapper.Sandbox(sGame):GetService(i) then return Wrapper.Sandbox(sGame):GetService(i)end;
  91. return Wrapper.Sandbox(Object[i]);
  92. elseif (typeof(Rest) == "function") then
  93. local isService,Service = pcall(function() return sGame:GetService(i) end)
  94. if isService and Service then return Wrapper.Sandbox(Service) end
  95. return function(self, ...)
  96. return Wrapper.Sandbox(Rest(Wrapper.Unsandbox(self), Wrapper.Unsandbox(...)))
  97. end
  98. end
  99. return Wrapper.Sandbox(Object[i]);
  100. end
  101. Mt.__newindex = function(self, i, v)
  102. for g,x in pairs (Wrapper.InstanceMT["SET"]) do
  103. if (Object:IsA(g)) then
  104. for t, v in pairs(x) do
  105. for str in string.gmatch( t .. ",", "(%w+),") do
  106. if v(Wrapper.Unsandbox(self, i, v)) == true then
  107. Object[Wrapper.Unsandbox(i)] = Wrapper.Unsandbox(v);return
  108. end
  109. end
  110. end
  111. end
  112. end
  113. Object[Wrapper.Unsandbox(i)] = Wrapper.Unsandbox(v);
  114. end
  115. Mt.__tostring = function(self) return tostring(Object) end
  116. --elseif (Type == "") then -- Etc
  117. end
  118. Wrapper.Fake[Object] = Replacement;Wrapper.Real[Replacement] = Object;Unwrap[obi] = Replacement;
  119. else
  120. return Wrapper.Fake[Object] or Object;
  121. end
  122. end
  123. return unpack(Unwrap);
  124. end
  125. Wrapper.Unsandbox = function(...)
  126. local Unsandbox = {...};
  127. for i,v in pairs (Unsandbox) do Unsandbox[i] = Wrapper.Real[v] or Unsandbox[i]end;
  128. return unpack(Unsandbox)
  129. end
  130. Wrapper.Services = {
  131. ['contextactionservice'] = Wrapper.ContextActionService;
  132. ["userinputservice"] = Wrapper.UserInputService;
  133. }
  134. Wrapper.InstanceMT = {
  135. ["GET"] = {
  136. ["Global"] = {
  137. ["IsFake,isFake"] = function(self)return true;end;
  138. };
  139. ["Player"] = {
  140. ["mouse,Mouse,getMouse,GetMouse"] = function(self)return Wrapper.Mouse;end;
  141. };
  142. ["Players"] = {
  143. ["LocalPlayer,LocalPlayer"] = Wrapper.Sandbox(owner)
  144. };
  145. ["DataModel"] = {
  146. ["getService,GetService"] = function(self,service)
  147. if Wrapper.Services[service:lower()] then return Wrapper.Sandbox(Wrapper.Services[service:lower()])end;
  148. return Wrapper.Sandbox(sGame:GetService(service))
  149. end
  150. };
  151. ["RunService"] = {
  152. ["renderstepped,renderStepped,RenderStepped"] = sGame:GetService("RunService").Stepped;
  153. }
  154. };
  155. ["SET"] = {
  156. }
  157. }
  158. Wrapper.SoundLoudness = {};
  159. Wrapper.Event.OnServerEvent:Connect(function(FiredBy,Input)
  160. if FiredBy ~= sOwner then return end
  161. if Input.MouseEvent then
  162. Wrapper.Mouse.Target = Input.Target;Wrapper.Mouse.Hit = Input.Hit;Wrapper.Mouse:TriggerEvent("Move")
  163. elseif Input.Sound then
  164. if Wrapper.SoundLoudness[Input.Sound] then Wrapper.SoundLoudness[Input.Sound] = Input.Loudness end
  165. else
  166. local Begin = Input.UserInputState == Enum.UserInputState.Begin
  167. if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Wrapper.Mouse:TriggerEvent(Begin and "Button1Down" or "Button1Up") end
  168. if Input.UserInputType == Enum.UserInputType.MouseButton2 then return Wrapper.Mouse:TriggerEvent(Begin and "Button2Down" or "Button2Up") end
  169. for _,Action in pairs(Wrapper.ContextActionService.Actions) do
  170. for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end
  171. end
  172. Wrapper.Mouse:TriggerEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower());Wrapper.UserInputService:TriggerEvent(Begin and "InputBegan" or "InputEnded",Input,false)
  173. end
  174. end);
  175. Wrapper.Event.Parent = NLS([[
  176. local Player = owner;local Sounds = {};local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse();
  177. local Input = function(Input,gameProcessedEvent)
  178. if gameProcessedEvent then return end;
  179. Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
  180. end
  181. Event.OnClientEvent:connect(function(Args)
  182. if Args[1] == "NewSound" and Args[2]:IsA("Sound") then table.insert(Sounds,Args[2]) end
  183. end)
  184. UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input)
  185. local Hit,Target;while wait(1/30) do
  186. for x,Sound in pairs(Sounds) do if Sound.Parent then Event:FireServer({["Sound"]=Sound,["Loudness"]=Sound.PlaybackLoudness}) end; end;
  187. if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
  188. Hit = Mouse.Hit;Target = Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
  189. end
  190. end]],sOwner.Character)
  191. Instance = {
  192. ["new"] = function(Type,Parent)
  193. local Real = sInstance.new(Type,Wrapper.Unsandbox(Parent))
  194. if Type:lower() == "sound" then
  195. if not Parent then
  196. Parent = sOwner.Character
  197. end
  198. Wrapper.SoundLoudness[Real] = 0;Wrapper.Event:FireClient(sOwner,{"NewSound",Real})
  199. end
  200. return Wrapper.Sandbox(Real)
  201. end
  202. }
  203. LoadLibrary = function(Library)
  204. if Library == "RbxUtility" then
  205. return setmetatable({},{
  206. __tostring = function() return "RbxUtility" end;
  207. __index = function(self, Index)
  208. if Index:lower() == "create" then
  209. return function(Type) return function(Data)
  210. Data = Data or {};local Inst = Instance.new(Type)
  211. for x,y in pairs(Data) do Inst[x] = y end
  212. return Inst
  213. end;end;
  214. end
  215. return sLoadLibrary(Library)[Index]
  216. end})
  217. end
  218. return sLoadLibrary(Library)
  219. end
  220. owner = Wrapper.Sandbox(owner);game = Wrapper.Sandbox(game)workspace = Wrapper.Sandbox(workspace)
  221. Game= game;Workspace = workspace;
  222.  
  223. --//Paste script below this line.
  224.  
  225. --[[ Script Converted by WafflesAreVeryGood (Nobody#3907 on discord) ]]--
  226. local plr = game:GetService('Players').KakoytoNoob
  227. local char = plr.Character
  228. --Converted with ttyyuu12345's model to script plugin v4
  229. function sandbox(var,func)
  230. local env = getfenv(func)
  231. local newenv = setmetatable({},{
  232. __index = function(self,k)
  233. if k=="script" then
  234. return var
  235. else
  236. return env[k]
  237. end
  238. end,
  239. })
  240. setfenv(func,newenv)
  241. return func
  242. end
  243. cors = {}
  244. mas = Instance.new("Model",game:GetService("Lighting"))
  245. Tool0 = Instance.new("Tool")
  246. Folder1 = Instance.new("Folder")
  247. Sound2 = Instance.new("Sound")
  248. Model3 = Instance.new("Model")
  249. Part4 = Instance.new("Part")
  250. SpecialMesh5 = Instance.new("SpecialMesh")
  251. ManualWeld6 = Instance.new("ManualWeld")
  252. ManualWeld7 = Instance.new("ManualWeld")
  253. ManualWeld8 = Instance.new("ManualWeld")
  254. WedgePart9 = Instance.new("WedgePart")
  255. Part10 = Instance.new("Part")
  256. SpecialMesh11 = Instance.new("SpecialMesh")
  257. Script12 = Instance.new("Script")
  258. Part13 = Instance.new("Part")
  259. ParticleEmitter14 = Instance.new("ParticleEmitter")
  260. Part15 = Instance.new("Part")
  261. ParticleEmitter16 = Instance.new("ParticleEmitter")
  262. Animation17 = Instance.new("Animation")
  263. Tool0.Name = "Gaster Blaster"
  264. Tool0.Parent = mas
  265. Tool0.TextureId = "rbxassetid://382220657"
  266. Tool0.ToolTip = "Gaster Blaster: Used By Sans"
  267. Tool0.CanBeDropped = false
  268. Folder1.Parent = Tool0
  269. Sound2.Name = "GBSound"
  270. Sound2.Parent = Folder1
  271. Sound2.SoundId = "rbxassetid://382265669"
  272. Sound2.Volume = 1
  273. Model3.Name = "GB"
  274. Model3.Parent = Folder1
  275. Model3.PrimaryPart = Part4
  276. Part4.Name = "Main"
  277. Part4.Parent = Model3
  278. Part4.Material = Enum.Material.SmoothPlastic
  279. Part4.BrickColor = BrickColor.new("Institutional white")
  280. Part4.Rotation = Vector3.new(178.669998, -0.049999997, 179.819992)
  281. Part4.Anchored = true
  282. Part4.CanCollide = false
  283. Part4.FormFactor = Enum.FormFactor.Custom
  284. Part4.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  285. 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)
  286. Part4.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  287. Part4.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  288. Part4.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  289. Part4.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  290. Part4.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  291. Part4.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  292. Part4.Color = Color3.new(0.972549, 0.972549, 0.972549)
  293. Part4.Position = Vector3.new(9.6476717, 212.837067, 62.5175667)
  294. Part4.Orientation = Vector3.new(1.32999992, -179.949997, -0.179999992)
  295. Part4.Color = Color3.new(0.972549, 0.972549, 0.972549)
  296. SpecialMesh5.Parent = Part4
  297. SpecialMesh5.MeshId = "http://www.roblox.com/asset/?id=14028428"
  298. SpecialMesh5.Scale = Vector3.new(4.23171806, 4.23171759, 4.23171663)
  299. SpecialMesh5.VertexColor = Vector3.new(1000000, 10000, 10000)
  300. SpecialMesh5.MeshType = Enum.MeshType.FileMesh
  301. SpecialMesh5.Scale = Vector3.new(4.23171806, 4.23171759, 4.23171663)
  302. ManualWeld6.Name = "Weld"
  303. ManualWeld6.Parent = Part4
  304. 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)
  305. 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)
  306. ManualWeld6.Part0 = Part4
  307. ManualWeld6.Part1 = nil
  308. ManualWeld7.Name = "Weld"
  309. ManualWeld7.Parent = Part4
  310. 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)
  311. 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)
  312. ManualWeld7.Part0 = Part4
  313. ManualWeld7.Part1 = nil
  314. ManualWeld8.Name = "Weld"
  315. ManualWeld8.Parent = Part4
  316. 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)
  317. 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)
  318. ManualWeld8.Part0 = Part4
  319. ManualWeld8.Part1 = WedgePart9
  320. WedgePart9.Parent = Model3
  321. WedgePart9.BrickColor = BrickColor.new("Institutional white")
  322. WedgePart9.Rotation = Vector3.new(45, 0, 0)
  323. WedgePart9.CanCollide = false
  324. WedgePart9.FormFactor = Enum.FormFactor.Symmetric
  325. WedgePart9.Size = Vector3.new(1.60000014, 1.5999999, 4.4000001)
  326. 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)
  327. WedgePart9.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  328. WedgePart9.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  329. WedgePart9.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  330. WedgePart9.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  331. WedgePart9.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  332. WedgePart9.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  333. WedgePart9.Color = Color3.new(0.972549, 0.972549, 0.972549)
  334. WedgePart9.Position = Vector3.new(9.59999466, 215.742599, 58.2514572)
  335. WedgePart9.Orientation = Vector3.new(45, 0, 0)
  336. WedgePart9.Color = Color3.new(0.972549, 0.972549, 0.972549)
  337. Part10.Name = "GBBeam"
  338. Part10.Parent = Folder1
  339. Part10.Material = Enum.Material.SmoothPlastic
  340. Part10.BrickColor = BrickColor.new("Institutional white")
  341. Part10.Rotation = Vector3.new(0, 90, 0)
  342. Part10.Anchored = true
  343. Part10.CanCollide = false
  344. Part10.FormFactor = Enum.FormFactor.Custom
  345. Part10.Size = Vector3.new(200, 6, 6)
  346. 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)
  347. Part10.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  348. Part10.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  349. Part10.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  350. Part10.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  351. Part10.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  352. Part10.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  353. Part10.Color = Color3.new(1, 1, 1)
  354. Part10.Position = Vector3.new(-2.50004816, 4.40002823, -1021.19995)
  355. Part10.Orientation = Vector3.new(0, 90, 0)
  356. Part10.Color = Color3.new(1, 1, 1)
  357. SpecialMesh11.Parent = Part10
  358. SpecialMesh11.MeshType = Enum.MeshType.Cylinder
  359. Script12.Parent = Part10
  360. Script12.Disabled = true
  361. Part13.Name = "HandFlame"
  362. Part13.Parent = Folder1
  363. Part13.Transparency = 1
  364. Part13.Rotation = Vector3.new(0, 0, -30)
  365. Part13.Anchored = true
  366. Part13.CanCollide = false
  367. Part13.FormFactor = Enum.FormFactor.Custom
  368. Part13.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  369. 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)
  370. Part13.Position = Vector3.new(-8.29995918, 203.950241, 50.9999504)
  371. Part13.Orientation = Vector3.new(0, 0, -30)
  372. ParticleEmitter14.Name = "Flame"
  373. ParticleEmitter14.Parent = Part13
  374. ParticleEmitter14.Transparency = NumberSequence.new(0.69999998807907,0.69999998807907,0.94999998807907,1)
  375. ParticleEmitter14.Rotation = NumberRange.new(-180, 180)
  376. ParticleEmitter14.Size = NumberSequence.new(0.5,0.5)
  377. ParticleEmitter14.Color = ColorSequence.new(Color3.new(0, 0.392157, 1),Color3.new(0, 0.392157, 1))
  378. ParticleEmitter14.LightEmission = 1
  379. ParticleEmitter14.Texture = "http://www.roblox.com/asset/?id=298319954"
  380. ParticleEmitter14.ZOffset = 0.5
  381. ParticleEmitter14.Lifetime = NumberRange.new(3, 3)
  382. ParticleEmitter14.Rate = 500
  383. ParticleEmitter14.Speed = NumberRange.new(2, 2)
  384. ParticleEmitter14.VelocitySpread = 45
  385. ParticleEmitter14.Color = ColorSequence.new(Color3.new(0, 0.392157, 1),Color3.new(0, 0.392157, 1))
  386. Part15.Name = "HeadFlame"
  387. Part15.Parent = Folder1
  388. Part15.Transparency = 1
  389. Part15.Rotation = Vector3.new(0, 0, 79.6899948)
  390. Part15.Anchored = true
  391. Part15.CanCollide = false
  392. Part15.FormFactor = Enum.FormFactor.Custom
  393. Part15.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  394. 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)
  395. Part15.Position = Vector3.new(-10.0999317, 211.071381, 50.400013)
  396. Part15.Orientation = Vector3.new(0, 0, 79.6899948)
  397. ParticleEmitter16.Name = "Flame"
  398. ParticleEmitter16.Parent = Part15
  399. ParticleEmitter16.Transparency = NumberSequence.new(0.69999998807907,0.89999997615814,1)
  400. ParticleEmitter16.Rotation = NumberRange.new(-180, 180)
  401. ParticleEmitter16.Size = NumberSequence.new(0.5,0.5)
  402. ParticleEmitter16.Color = ColorSequence.new(Color3.new(0, 0.392157, 1),Color3.new(0, 0.392157, 1))
  403. ParticleEmitter16.LightEmission = 1
  404. ParticleEmitter16.Texture = "http://www.roblox.com/asset/?id=134531489"
  405. ParticleEmitter16.Acceleration = Vector3.new(0, 20, 0)
  406. ParticleEmitter16.Lifetime = NumberRange.new(0.60000002384186, 0.60000002384186)
  407. ParticleEmitter16.Rate = 500
  408. ParticleEmitter16.Speed = NumberRange.new(10, 10)
  409. ParticleEmitter16.Color = ColorSequence.new(Color3.new(0, 0.392157, 1),Color3.new(0, 0.392157, 1))
  410. Animation17.Name = "GBSend"
  411. Animation17.Parent = Folder1
  412. Animation17.AnimationId = "http://www.roblox.com/GBSend-item?id=388238523"
  413. for i,v in pairs(mas:GetChildren()) do
  414. v.Parent = game:GetService("Players").KakoytoNoob.Character
  415. pcall(function() v:MakeJoints() end)
  416. end
  417. mas:Destroy()
  418. for i,v in pairs(cors) do
  419. spawn(function()
  420. pcall(v)
  421. end)
  422. end
  423. Tool0.RequiresHandle = false
  424. local tool = char["Gaster Blaster"]
  425. for i,v in pairs(tool.Folder:GetChildren()) do
  426. v.Parent = script
  427. end
  428. script.Parent = tool
  429. tool.Parent = plr.Backpack
  430. local hum=char:WaitForChild("Humanoid")
  431. local torso=char:WaitForChild("Torso")
  432. local hrp=char:WaitForChild("HumanoidRootPart")
  433. local check=false
  434. local dmg=false
  435. local combo=false
  436. local comboing=false
  437. local gb=script.GB
  438. local gbsend=hum:LoadAnimation(script.GBSend)
  439. local equipped=false
  440. local tool=script.Parent
  441. local closest=nil
  442. crosstab={
  443. [1]={math.cos(math.rad(45)),math.sin(math.rad(45))},
  444. [2]={math.cos(math.rad(135)),math.sin(math.rad(135))},
  445. [3]={math.cos(math.rad(225)),math.sin(math.rad(225))},
  446. [4]={math.cos(math.rad(315)),math.sin(math.rad(315))}
  447. }
  448. local attacklist={}
  449. local rignore={}
  450. local lgb=nil
  451. local rgb=nil
  452. local lgbbp=nil
  453. local rgbbp=nil
  454. local lgbbg=nil
  455. local rgbbg=nil
  456. local headf=nil
  457. local handf=nil
  458.  
  459. for _,v in pairs(workspace:GetChildren()) do
  460. if not v:FindFirstChild("Humanoid") then
  461. table.insert(rignore,v)
  462. end
  463. end
  464.  
  465. function Loop()
  466. coroutine.resume(coroutine.create(function()
  467. while equipped==true do
  468. repeat wait() until rgb:FindFirstChild("Main") and lgb:FindFirstChild("Main")
  469. rgb.Main.Velocity = Vector3.new()
  470. lgb.Main.Velocity = Vector3.new()
  471. rgbbp.Position=(hrp.CFrame*CFrame.new(10,5,0)).p
  472. lgbbp.Position=(hrp.CFrame*CFrame.new(-10,5,0)).p
  473. rgbbg.CFrame=CFrame.new(rgb.Main.Position,mouse.Hit.p)
  474. lgbbg.CFrame=CFrame.new(lgb.Main.Position,mouse.Hit.p)
  475. rgb.Main.Anchored = false
  476. lgb.Main.Anchored = false
  477. wait()
  478. end
  479. end))
  480. end
  481.  
  482. local function PrepareHurt(proj,dmgcheck,dmg)
  483. return --[[
  484. 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)
  485. for _,v in pairs(workspace:GetChildren()) do
  486. if v.Name=="GBBeam" then
  487. table.insert(rignore,v)
  488. end
  489. end
  490. local hit=workspace:FindPartOnRayWithIgnoreList(ray,rignore)
  491. if hit then
  492. if hit.Parent:FindFirstChild("Humanoid") and hit.Parent.Name~=plr.Name then
  493. if hit.Parent.Humanoid.Health>0 then
  494. hit.Parent.Humanoid:TakeDamage(dmg)
  495. end
  496. end
  497. end]]
  498. end
  499. function fakescript(beamasd)
  500. local script = {Parent = beamasd}
  501. local key=math.random()
  502.  
  503. function onTouched(hit)
  504. local human = hit.Parent:FindFirstChildOfClass("Humanoid")
  505. --Basically this just checks to see if it is a real player touching this brick.
  506. if (human ~= nil) and hit.Parent ~= char then --If it is a real player, then DESTROY THEM!
  507. print("y'all")
  508. human.Health = human.Health - 7.5*(1-script.Parent.Transparency)
  509. end
  510. end
  511.  
  512.  
  513. if (script.Parent ~= nil) and (script.Parent.className == "Part") then --Work if in a block
  514. connection = script.Parent.Touched:connect(onTouched)
  515. end
  516. local beam=script.Parent
  517. local bp = Instance.new("BodyPosition")
  518. bp.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  519. bp.Position = beam.Position
  520. bp.Parent = beam
  521. beam.Anchored = false
  522. coroutine.resume(coroutine.create(function()
  523. wait(0.3)
  524. for i=1,10 do
  525. if not beam:FindFirstChild"Mesh" then return end
  526. beam.Mesh.Scale=Vector3.new(1,1-(i/9),1-(i/9))
  527. wait()
  528. end
  529. end))
  530. wait(0.4)
  531. for i=1,15 do
  532. bp.Position = beam.Position
  533. beam.Transparency=i/15
  534. wait()
  535. end
  536. wait()
  537. beam:Destroy()
  538. end
  539. local function FIRE(obj,mode,thitpos)
  540. coroutine.resume(coroutine.create(function()
  541. if mode=="Normal" then
  542. obj.Main.CFrame=hrp.CFrame*CFrame.new(math.random(-100,100),math.random(0,200),math.random(-100,100))
  543. end
  544. local dmgcheck=false
  545. local gbsfx=script.GBSound:Clone()
  546. gbsfx.Parent=obj.Main
  547. gbsfx:Play()
  548. game.Debris:AddItem(gbsfx,3)
  549. wait(1)
  550. local beam=script.GBBeam:Clone()
  551. beam.CFrame=obj.Main.CFrame*CFrame.new(0,-3,1)
  552. spawn(function()
  553. fakescript(beam)
  554. end)
  555. beam.Size=Vector3.new(((beam.CFrame*CFrame.new(0,0,-beam.Size.X/2)).p-hitpos).magnitude*2,beam.Size.Y,beam.Size.Z)
  556. if mode~="Dual" then
  557. beam.CFrame=CFrame.new(beam.Position,thitpos)*CFrame.Angles(0,math.pi/2,0)
  558. else
  559. beam.CFrame=CFrame.new(beam.Position,mouse.Hit.p)*CFrame.Angles(0,math.pi/2,0)
  560. end
  561. beam.CFrame=beam.CFrame*CFrame.new(beam.Size.X/2,0,0)
  562. beam.Transparency=0
  563. local m = Instance.new("SpecialMesh")
  564. m.MeshType = "Cylinder"
  565. m.Parent = beam
  566. beam.Mesh.Scale=Vector3.new(1,1,1)
  567. --PrepareHurt(beam,dmgcheck,10)
  568. beam.Parent = char
  569. if mode=="Dual" then
  570. end
  571. end))
  572. end
  573.  
  574. local function Lerp(obj,kind,nb,total,spec)
  575. obj.Main.Anchored=false
  576. local bodyp=Instance.new("BodyPosition",obj.Main)
  577. bodyp.MaxForce=Vector3.new(math.huge,math.huge,math.huge)
  578. bodyp.D=100
  579. bodyp.P=1000
  580. local gyro=Instance.new("BodyGyro",obj.Main)
  581. gyro.MaxTorque=Vector3.new(10000,10000,10000)
  582. gyro.D=80
  583. if kind=="Front" then
  584. obj.CFrame=hrp.CFrame*CFrame.new(math.random(-10,10),math.random(0,5),-5)
  585. end
  586. coroutine.resume(coroutine.create(function()
  587. wait()
  588. gyro.CFrame=CFrame.new(obj.Main.Position,hitpos)
  589. wait(0.5)
  590. gyro.CFrame=CFrame.new(obj.Main.Position,hitpos)
  591. end))
  592. if kind=="Line" then
  593. if total==0 then
  594. bodyp.Position=hrp.Position+Vector3.new(0,10,0)
  595. elseif total==2 then
  596. if nb==1 then
  597. bodyp.Position=hrp.Position+Vector3.new(5,0,4)
  598. elseif nb==2 then
  599. bodyp.Position=hrp.Position+Vector3.new(-5,0,4)
  600. end
  601. elseif total==6 then
  602. if nb==1 then
  603. bodyp.Position=(hrp.CFrame*CFrame.new(-30,1,0)).p
  604. elseif nb==2 then
  605. bodyp.Position=(hrp.CFrame*CFrame.new(-20,1,0)).p
  606. elseif nb==3 then
  607. bodyp.Position=(hrp.CFrame*CFrame.new(-10,1,0)).p
  608. elseif nb==4 then
  609. bodyp.Position=(hrp.CFrame*CFrame.new(10,1,0)).p
  610. elseif nb==5 then
  611. bodyp.Position=(hrp.CFrame*CFrame.new(20,1,0)).p
  612. elseif nb==6 then
  613. bodyp.Position=(hrp.CFrame*CFrame.new(30,1,0)).p
  614. end
  615. end
  616. elseif kind=="Circle" then
  617. if spec=="Cross" then
  618. bodyp.Position=hitpos+Vector3.new(crosstab[nb][1],3/50,crosstab[nb][2])*50
  619. elseif spec=="Plus" or spec=="Total" then
  620. bodyp.Position=hitpos+Vector3.new(math.cos(math.rad(nb*(360/total))),3/50,math.sin(math.rad(nb*(360/total))))*50
  621. end
  622. end
  623. end
  624. function debris(obj, t)
  625. spawn(function()
  626. wait(t)
  627. for i = 1, 10 do
  628. for _,v in pairs(obj:GetChildren()) do
  629. if v:IsA("BasePart") and v.Transparency < 1 then
  630. v.Transparency = i/10
  631. end
  632. end
  633. game:GetService('RunService').Stepped:wait(0)
  634. end
  635. for _,v in pairs(obj:GetChildren()) do
  636. v:Destroy()
  637. end
  638. end)
  639. end
  640.  
  641. local function PrepareAttack(key)
  642. if check==false and hum.Health>0 then
  643. if closest==nil then
  644. hitpos=mouse.Hit.p
  645. else
  646. hitpos=closest.Torso.Position
  647. end
  648. if equipped==true then
  649. if key=="q" then
  650. combo=true
  651. elseif key=="e" then
  652. if combo==false then
  653. check=true
  654. hum.WalkSpeed=0
  655. gbsend:Play()
  656. local gbc=gb:Clone()
  657. gbc.Parent=char
  658. gbc.Main.CFrame=hrp.CFrame*CFrame.new(math.random(-100,100),math.random(0,200),math.random(-100,100))
  659. Lerp(gbc,"Line",0,0)
  660. FIRE(gbc,"Normal",hitpos)
  661. hum.WalkSpeed=30
  662. debris(gbc, 1.8)
  663. if comboing==false then
  664. wait(1)
  665. else
  666. wait(0.25)
  667. end
  668. check=false
  669. elseif combo==true and #attacklist<5 then
  670. table.insert(attacklist,key)
  671. end
  672. elseif key=="r" then
  673. if combo==false then
  674. check=true
  675. hum.WalkSpeed=0
  676. gbsend:Play()
  677. FIRE(lgb,"Dual",hitpos)
  678. FIRE(rgb,"Dual",hitpos)
  679. hum.WalkSpeed=30
  680. if comboing==false then
  681. wait(1.5)
  682. else
  683. wait(0.325)
  684. end
  685. check=false
  686. elseif combo==true and #attacklist<5 then
  687. table.insert(attacklist,key)
  688. end
  689. elseif key=="t" then
  690. if combo==false then
  691. check=true
  692. hum.WalkSpeed=0
  693. gbsend:Play()
  694. for i=1,12 do
  695. local gbc=gb:Clone()
  696. gbc.Parent=char
  697. debris(gbc, 1.8)
  698. gbc.Main.CFrame=hrp.CFrame*CFrame.new(math.random(-100,100),math.random(0,200),math.random(-100,100))
  699. coroutine.resume(coroutine.create(function()
  700. Lerp(gbc,"Circle",i,12,"Total")
  701. FIRE(gbc,"Normal",hitpos)
  702. end))
  703. wait(0.05)
  704. end
  705. hum.WalkSpeed=30
  706. if comboing==false then
  707. wait(7)
  708. else
  709. wait(5)
  710. end
  711. check=false
  712. elseif combo==true and #attacklist==4 then
  713. table.insert(attacklist,key)
  714. end
  715. elseif key=="f" then
  716. if combo==false then
  717. check=true
  718. hum.WalkSpeed=0
  719. gbsend:Play()
  720. for i=1,4 do
  721. local gbc=gb:Clone()
  722. gbc.Parent=char
  723. debris(gbc, 1.8)
  724. coroutine.resume(coroutine.create(function()
  725. Lerp(gbc,"Circle",i,4,"Plus")
  726. FIRE(gbc,"Normal",hitpos)
  727. end))
  728. end
  729. hum.WalkSpeed=30
  730. if comboing==false then
  731. wait(2)
  732. else
  733. wait(0.5)
  734. end
  735. check=false
  736. elseif combo==true and #attacklist<5 then
  737. table.insert(attacklist,key)
  738. end
  739. elseif key=="g" then
  740. if combo==false then
  741. check=true
  742. hum.WalkSpeed=0
  743. gbsend:Play()
  744. for i=1,4 do
  745. local gbc=gb:Clone()
  746. gbc.Parent=char
  747. debris(gbc, 1.8)
  748. coroutine.resume(coroutine.create(function()
  749. Lerp(gbc,"Circle",i,4,"Cross")
  750. FIRE(gbc,"Normal",hitpos)
  751. end))
  752. end
  753. hum.WalkSpeed=30
  754. if comboing==false then
  755. wait(2)
  756. else
  757. wait(0.5)
  758. end
  759. check=false
  760. elseif combo==true and #attacklist<5 then
  761. table.insert(attacklist,key)
  762. end
  763. elseif key=="h" then
  764. if combo==false then
  765. check=true
  766. hum.WalkSpeed=0
  767. gbsend:Play()
  768. for i=1,8 do
  769. local gbc=gb:Clone()
  770. gbc.Parent=char
  771. debris(gbc, 1.8)
  772. coroutine.resume(coroutine.create(function()
  773. Lerp(gbc,"Circle",i,8,"Total")
  774. FIRE(gbc,"Normal",hitpos)
  775. end))
  776. end
  777. hum.WalkSpeed=30
  778. if comboing==false then
  779. wait(2)
  780. else
  781. wait(.5)
  782. end
  783. check=false
  784. elseif combo==true and #attacklist<3 then
  785. table.insert(attacklist,key)
  786. end
  787. end
  788. end
  789. end
  790. end
  791.  
  792. mouse.KeyUp:connect(function(key)
  793. if key=="q" and combo==true and check==false then
  794. combo=false
  795. comboing=true
  796. for _,v in pairs(attacklist) do
  797. PrepareAttack(v)
  798. end
  799. attacklist={}
  800. comboing=false
  801. check=true
  802. wait(5)
  803. check=false
  804. end
  805. end)
  806.  
  807. mouse.KeyDown:connect(PrepareAttack)
  808.  
  809. tool.Equipped:connect(function()
  810. equipped=true
  811. lgb=script.GB:Clone()
  812. lgb.Parent=char
  813. lgb.Main.Anchored=true
  814. rgb=script.GB:Clone()
  815. rgb.Parent=char
  816. rgb.Main.Anchored=true
  817. rgbbp=Instance.new("BodyPosition")
  818. rgbbp.MaxForce=Vector3.new(math.huge,math.huge,math.huge)
  819. rgbbp.D=200
  820. rgbbp.Position = char.Torso.Position
  821. rgbbp.P=300
  822. lgbbp=Instance.new("BodyPosition")
  823. lgbbp.MaxForce=Vector3.new(math.huge,math.huge,math.huge)
  824. lgbbp.D=200
  825. lgbbp.P=300
  826. lgbbp.Position = char.Torso.Position
  827. lgbbg=Instance.new("BodyGyro")
  828. lgbbg.MaxTorque=Vector3.new(10000,10000,10000)
  829. lgbbg.D=400
  830. rgbbg=Instance.new("BodyGyro")
  831. rgbbg.MaxTorque=Vector3.new(10000,10000,10000)
  832. rgbbg.D=400
  833. headf=script.HeadFlame:Clone()
  834. headf.Parent=char
  835. headf.Anchored=false
  836. local headfw=Instance.new("Weld",headf)
  837. headfw.Part0=char.Head
  838. headfw.Part1=headf
  839. headfw.C0=CFrame.new(-0.125,0.22,-0.55)*CFrame.Angles(0,0,math.pi/2)
  840. handf=script.HandFlame:Clone()
  841. handf.Parent=char
  842. handf.Anchored=false
  843. local handfw=Instance.new("Weld",handf)
  844. handfw.Part0=char["Right Arm"]
  845. handfw.Part1=handf
  846. handfw.C0=CFrame.new(0,-1.25,0)*CFrame.Angles(0,0,-math.pi/4)
  847. rgbbp.Position = char.Torso.Position
  848. lgbbp.Position = char.Torso.Position
  849. rgbbp.Parent = rgb.Main
  850. lgbbp.Parent = lgb.Main
  851. lgbbg.Parent = lgb.Main
  852. rgbbg.Parent = rgb.Main
  853. Loop()
  854. end)
  855. tool.Unequipped:connect(function()
  856. equipped=false
  857. lgb:Destroy()
  858. rgb:Destroy()
  859. headf:Destroy()
  860. handf:Destroy()
  861. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement