Advertisement
DrawingJhon

FE Converter

Sep 14th, 2020 (edited)
311
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.14 KB | None | 0 0
  1. script.Parent = owner:findFirstChildOfClass("PlayerGui")
  2.  
  3. function GetSource(http)
  4.     return game:GetService("HttpService"):GetAsync(http)
  5. end
  6.  
  7. local FeSource = GetSource("https://pastebin.com/raw/QCQ46dDs")
  8. local scriptList = {}
  9.  
  10. local sp = ""
  11. for i, v in pairs(FeSource:split("\n")) do
  12.     if not v:match("%-%-") then
  13.         sp = sp.." "..v
  14.     end
  15. end
  16. FeSource = sp
  17.  
  18. function MakeFe(source)
  19.     local z = NS(FeSource.." "..source, owner:findFirstChildOfClass("PlayerGui"))
  20.     table.insert(scriptList, z)
  21. end
  22.  
  23. function cmdFunc(msg)
  24.     if msg:lower():sub(1,3) == "fh/" then
  25.         local source
  26.         local success, err = pcall(function()
  27.             source = GetSource(msg:sub(4))
  28.         end)
  29.         if success then
  30.             MakeFe(source)
  31.         else
  32.             assert(nil, "Unable to get url'"..tostring(msg:sub(4)).."'")
  33.         end
  34.     end
  35.     if msg:lower():sub(1,3) == "fs/" then
  36.         MakeFe(msg:sub(4))
  37.     end
  38. end
  39.  
  40. local remote = Instance.new("RemoteEvent", script)
  41. remote.Name = "REEEEEEE"
  42. remote.OnServerEvent:Connect(function(plr, pass, text)
  43.     if plr ~= owner or pass ~= "asdAJGcvaifehlbqayispdlhobefobwapsdoucafegwu9rqalsc" then return end
  44.     cmdFunc(text)
  45. end)
  46.  
  47. owner.Chatted:Connect(cmdFunc)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement