Advertisement
TheOfficialSeb

[F3X Import] Main Command

May 27th, 2022 (edited)
576
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local HTTPService = game:GetService("HttpService")
  2. local SerializationV3 = loadstring(HTTPService:GetAsync("https://pastebin.com/raw/f6cPYWUb"))()
  3. function Import(Id)
  4.     local ContainerScript = NS([[
  5.         script.DescendantRemoving:Connect(function(x)
  6.             local Parent = x.Parent
  7.             wait()
  8.             x:Clone().Parent = Parent
  9.         end)
  10.     ]],workspace)
  11.     ContainerScript.Name = Id
  12.     local Container = Instance.new("Model",ContainerScript)
  13.     local Parts = SerializationV3.InflateBuildData(HTTPService:JSONDecode(HTTPService:GetAsync(("http://www.f3xteam.com/bt/export/%s"):format(Id))))
  14.     for Index,Part in next,Parts do
  15.         Part.Parent = Container
  16.         if Index%100 == 0 then
  17.             wait()
  18.         end
  19.     end
  20.     Container:MakeJoints()
  21. end
  22. owner.Chatted:Connect(function(Message)
  23.     local Ids = Message:lower():match("^im/(.+)")
  24.     if Ids then
  25.         for Id in Ids:gmatch("(%w%w%w%w)") do
  26.             Import(Id)
  27.             print("Imported "..Id)
  28.             wait()
  29.         end
  30.     end
  31. end)
Advertisement
RAW Paste Data Copied
Advertisement