Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- do not touch anything below this line
- -- any changes will most likely break the script as there is a lot of delicate and shitty
- --junk code that is probably most likely not needed
- -- force of habit, i guess.
- function notify(title,text)
- game.StarterGui:SetCore("SendNotification", {
- Title = title or "Notification",
- Text = text or "?",
- Button1 = "Ok"
- })
- end
- function joinplayer(args)
- function ToServer(User,PlaceId)
- if not pcall(function()
- local FoundUser, UserId = pcall(function()
- if tonumber(User) then
- return tonumber(User)
- end
- return game:GetService("Players"):GetUserIdFromNameAsync(User)
- end)
- if not FoundUser then
- notify('Join Error','Username/UserID does not exist')
- else
- notify('Join Player','Loading servers. Hold on a second.')
- local res = game:HttpGet("https://www.roblox.com/headshot-thumbnail/json?userId="..UserId.."&width=48&height=48")
- local HttpURL = game:GetService("HttpService"):JSONDecode(res)
- local ThumbGrab = HttpURL["Url"]
- local Thumb = ThumbGrab
- local URL2 = ("https://www.roblox.com/games/getgameinstancesjson?placeId="..PlaceId.."&startindex=")
- local Http = game:GetService("HttpService"):JSONDecode(game:HttpGet(URL2.."0"))
- local GUID
- for i = 0,Http.TotalCollectionSize do
- local Http = game:GetService("HttpService"):JSONDecode(game:HttpGet(URL2..i))
- for x,n in pairs(Http.Collection) do
- for _,v in pairs(n.CurrentPlayers) do
- if v.Thumbnail.Url == Thumb then
- GUID = n.Guid
- end
- end
- end
- end
- if GUID ~= nil then
- notify('Join Player','Joining '..User)
- game:GetService("TeleportService"):TeleportToPlaceInstance(PlaceId,GUID,game.Players.LocalPlayer)
- else
- notify('Join Error','Unable to join user.')
- end
- end
- end)
- then
- if retries < 3 then
- retries = retries + 1
- print('ERROR retrying '..retries..'/3')
- notify('Join Error','Error while trying to join. Retrying '..retries..'/3.')
- ToServer(User,PlaceId)
- else
- notify('Join Error','Error while trying to join.')
- end
- end
- end
- ToServer(args[1],game.PlaceId)
- end
- local function create(classNm)
- local ins = Instance.new(classNm)
- return function(props)
- for prop, val in pairs(props) do
- ins[prop] = val
- end
- return ins
- end
- end
- function createMenuFrame(x1,x2,y1,y2,r,g,b,r2,g2,b2,gui,globalPosition)
- local F = {}
- local FrameMain = Instance.new('Frame',gui)
- FrameMain.Size = UDim2.new(x1,x2,y1,y2)
- FrameMain.BorderSizePixel = 0
- FrameMain.BackgroundColor3 = Color3.fromRGB(r,g,b)
- FrameMain.Position = UDim2.new(0,0,0,0)
- F["Main"] = FrameMain
- local TopBar = Instance.new('Frame',FrameMain)
- TopBar.Size = UDim2.new(1,0,.08,0)
- TopBar.BackgroundColor3 = Color3.fromRGB(r2,g2,b2)
- TopBar.Position = UDim2.new(0,0,0)
- TopBar.BorderSizePixel = 0
- F["TopBar"] = TopBar
- F.SetGlobalPosition = function(Position)
- F["Main"].AnchorPoint = Vector2.new(.5,.5)
- F["Main"].Position = Position
- end
- F.SetGlobalPosition(globalPosition)
- return F
- end
- function modManagementMenu()
- local gui = Instance.new('ScreenGui')
- if is_protosmasher_caller then
- gui.Parent = game.CoreGui
- else
- gui.Parent = game:GetService('Players').LocalPlayer.PlayerGui
- end
- local main = createMenuFrame(0,450,0,350,30,30,30,10,10,10,gui,UDim2.new(.5,0,-1.5,0))
- local label = create("TextLabel"){
- TextColor3 = Color3.new(1,1,1),
- BackgroundTransparency=1,
- Text = "Mod Management Menu",
- Parent = main.TopBar,
- Size = UDim2.new(1,0,1,0),
- TextScaled = true
- }
- local olb = create("TextLabel"){
- TextColor3 = Color3.new(1,1,1),
- BackgroundTransparency=1,
- Text = "bro sorry not done :(",
- Parent = main.Main,
- Size = UDim2.new(1,0,1,0),
- TextScaled = true
- }
- local frame = main.Main
- frame:TweenPosition(UDim2.new(0.5,0,.5,0),"InOut","Sine",1.3)
- wait(3)
- frame:TweenPosition(UDim2.new(0.5,0,-1.5,0),"InOut","Sine",1.3)
- end
- notify("Notification","Useless library loaded, 90% of the functions used here are skidded from IY.")
- notify("Notification","This script is using Useless Library, created by Donikthur.")
- if not is_protosmasher_caller then
- wait(1)
- notify("Warning","The exploit you are using is not supported. The only supported exploits can be viewed in the Mod Management Menu.")
- end
- modManagementMenu()
- local Function = {
- joinplayer = joinplayer,
- notify = notify,
- createMenuFrame = createMenuFrame
- }
- return Function
Add Comment
Please, Sign In to add comment