Advertisement
lundofett

Untitled

Dec 23rd, 2018 (edited)
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --[[
  2. FilteringEnabled Script Bar
  3.  
  4. Run non-fe compatable scripts under lundo's compability code.
  5. It should be compatible with most scripts, but if you encounter issues make sure to let me know.
  6. --]]
  7. if not script:IsA("LocalScript") then
  8. error(">> This script is being run as a server-sided script (or modulescript?) instead of a localscript.\nYou'll need to run it as a localscript, with hl/(url).<<")
  9. end
  10.  
  11. if not NS then
  12. NS = function() end
  13. end
  14.  
  15. services = setmetatable({}, {
  16. __index = function(self, k, ...)
  17. return game:GetService(k)
  18. end})
  19.  
  20. local plr = services.Players.LocalPlayer
  21. print("Credit to Mokiros for his FE Compatibility script.\nThis project wouldn't be possible without him.\n")
  22. print("You can obtain a copy of his code for his FE compatability at https://github.com/Mokiros/roblox-FE-compatibility.\n")
  23. print("You may also obtain a copy of his licence at https://raw.githubusercontent.com/Mokiros/roblox-FE-compatibility/master/LICENSE.\n")
  24. print("All of the source code in exception to his compatability code is in the public domain, and was made by TheFlamingBlaster.")
  25.  
  26. local fecompat = [[
  27. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  28. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  29. local RealPlayer = Player
  30. do 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={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=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]]
  31.  
  32. NS([[
  33. wait(1)
  34. local requestHandlers = {
  35. ["HttpGet"] = function(client, url, cache)
  36. return game:GetService"HttpService":GetAsync(url, cache or true)
  37. end,
  38. ["GetDataStore"] = function(client, ds, key)
  39. local ds = game:GetService"DataStoreService":GetDataStore(ds):GetAsync(key)
  40. end,
  41. ["SetDataStore"] = function(client, ds, key, newval)
  42. local ds = game:GetService"DataStoreService":GetDataStore(ds):SetAsync(key, newval)
  43. end
  44. }
  45.  
  46.  
  47. local generateRemote
  48. generateRemote = function()
  49. local remote = Instance.new("RemoteFunction")
  50. remote.Name = getfenv().owner.Name.." : Coms"
  51.  
  52. remote.OnServerInvoke = function(client, request, ...)
  53. if requestHandlers[request] then
  54. return requestHandlers[request](client, ...)
  55. end
  56. end
  57.  
  58. remote.Parent = workspace
  59.  
  60. remote.AncestryChanged:Connect(function()
  61. delay(0.03, function()
  62. if remote then
  63. remote:Destroy()
  64. end
  65. end)
  66. generateRemote()
  67. end)
  68. end
  69.  
  70.  
  71. generateRemote()
  72. ]], workspace)
  73.  
  74. local remote = workspace:FindFirstChild(plr.Name..": Coms") or workspace:WaitForChild(plr.Name.." : Coms")
  75.  
  76. -- Objects
  77.  
  78. local FEBar = Instance.new("ScreenGui")
  79. local BG = Instance.new("Frame")
  80. local TextLabel = Instance.new("TextLabel")
  81. local Exit = Instance.new("TextButton")
  82. local UrlBar = Instance.new("TextBox")
  83. local TextLabel_2 = Instance.new("TextLabel")
  84.  
  85. -- Properties
  86.  
  87. FEBar.Name = "FEBar"
  88.  
  89. BG.Name = "BG"
  90. BG.Parent = FEBar
  91. BG.BackgroundColor3 = Color3.new(0.156863, 0.156863, 0.156863)
  92. BG.BorderSizePixel = 0
  93. BG.Position = UDim2.new(0.720785916, 0, 0.897717714, 0)
  94. BG.Size = UDim2.new(0.279214054, 0, 0.10228233, 0)
  95.  
  96. TextLabel.Parent = BG
  97. TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  98. TextLabel.BackgroundTransparency = 1
  99. TextLabel.Size = UDim2.new(0.683333337, 0, 0.201834857, 0)
  100. TextLabel.Font = Enum.Font.SourceSansSemibold
  101. TextLabel.FontSize = Enum.FontSize.Size14
  102. TextLabel.Text = "private script executer"
  103. TextLabel.TextColor3 = Color3.new(1, 1, 1)
  104. TextLabel.TextScaled = true
  105. TextLabel.TextWrapped = true
  106. TextLabel.TextXAlignment = Enum.TextXAlignment.Left
  107.  
  108. Exit.Name = "Exit"
  109. Exit.Parent = BG
  110. Exit.BackgroundColor3 = Color3.new(1, 1, 1)
  111. Exit.BackgroundTransparency = 1
  112. Exit.Position = UDim2.new(0.899999976, 0, 0, 0)
  113. Exit.Size = UDim2.new(0.100000001, 0, 0.206422016, 0)
  114. Exit.Font = Enum.Font.SourceSans
  115. Exit.FontSize = Enum.FontSize.Size14
  116. Exit.Text = "X"
  117. Exit.TextColor3 = Color3.new(1, 0, 0)
  118. Exit.TextScaled = true
  119. Exit.TextWrapped = true
  120.  
  121. UrlBar.Name = "UrlBar"
  122. UrlBar.Parent = BG
  123. UrlBar.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647)
  124. UrlBar.BorderSizePixel = 0
  125. UrlBar.Position = UDim2.new(0, 0, 0.247933879, 0)
  126. UrlBar.Size = UDim2.new(1, 0, 0.504132211, 0)
  127. UrlBar.Font = Enum.Font.SourceSans
  128. UrlBar.FontSize = Enum.FontSize.Size14
  129. UrlBar.Text = ""
  130. UrlBar.TextColor3 = Color3.new(0, 0, 0)
  131. UrlBar.TextScaled = true
  132. UrlBar.TextWrapped = true
  133. UrlBar.TextXAlignment = Enum.TextXAlignment.Left
  134.  
  135. TextLabel_2.Parent = BG
  136. TextLabel_2.BackgroundColor3 = Color3.new(1, 0, 0)
  137. TextLabel_2.BackgroundTransparency = 1
  138. TextLabel_2.Position = UDim2.new(0, 0, 0.834710777, 0)
  139. TextLabel_2.Size = UDim2.new(1, 0, 0.165289253, 0)
  140. TextLabel_2.Font = Enum.Font.SourceSansSemibold
  141. TextLabel_2.FontSize = Enum.FontSize.Size14
  142. TextLabel_2.Text = "Click the black box above, paste in your link and press \"Enter\" to run your script."
  143. TextLabel_2.TextColor3 = Color3.new(1, 0, 0)
  144. TextLabel_2.TextScaled = true
  145. TextLabel_2.TextWrapped = true
  146. TextLabel_2.TextXAlignment = Enum.TextXAlignment.Left
  147.  
  148. Exit.MouseButton1Click:Connect(function()
  149. FEBar:Destroy()
  150. script.Disabled = true
  151. end)
  152.  
  153. local curtext = ""
  154.  
  155. UrlBar.Changed:Connect(function()
  156. if not UrlBar.Text:match("#") then
  157. curtext = UrlBar.Text
  158. end
  159. end)
  160.  
  161. UrlBar.FocusLost:Connect(function(e)
  162. if e == true then
  163. if curtext:sub(1, 3) == "hl/" then
  164. UrlBar.Text = curtext:sub(3)
  165. end
  166. if curtext:sub(1, 2) == "h/" then
  167. UrlBar.Text = curtext:sub(2)
  168. end
  169. NS(fecompat.." "..remote:InvokeServer("HttpGet", curtext), workspace)
  170. print("Running "..curtext)
  171. end
  172. end)
  173.  
  174. FEBar.Parent = plr:FindFirstChildOfClass"PlayerGui"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement