The text below is selected, press Ctrl+C to copy to your clipboard. (⌘+C on Mac) No line numbers will be copied.
Guest
Turn your Roblox into 2016 Roblox script pastebin roblox
By Turn your Roblox into 2016 Roblox on 2024-11-25 08:00 am | Syntax: LUA | Views: 10



New Script | Raw | Show/Hide line no. | Copy text to clipboard
  1. --  _____       _     _             ___   ___  __   __  
  2. -- |  __ \     | |   | |           |__ \ / _ \/_ | / /  
  3. -- | |__) |___ | |__ | | _____  __    ) | | | || |/ /_  
  4. -- |  _  // _ \| '_ \| |/ _ \ \/ /   / /| | | || | '_ \
  5. -- | | \ \ (_) | |_) | | (_) >  <   / /_| |_| || | (_) |
  6. -- |_|  \_\___/|_.__/|_|\___/_/\_\ |____|\___/ |_|\___/
  7. --                                                      
  8. --              Script made by Invisible_                    
  9. --      If you want the cursor, look youtube for it
  10.  
  11. if game:IsLoaded() ~= true then
  12.    game.Loaded:Wait()
  13. end
  14. --Needed for nostalgia, Filtering Disabled spoof
  15. local Workspace = game.Workspace
  16. local old
  17. old = hookmetamethod(game, "__index", newcclosure(function(Self, ...)
  18.    local args = ...
  19.    if Self == Workspace and args == "FilteringEnabled" then
  20.        return false
  21.    end
  22.    return old(Self, ...)
  23. end))
  24.  
  25. --Script utils
  26. oldrequire = require
  27. getgenv().bakrequire = require
  28.  
  29. cache = {}
  30.  
  31. function IsCached(Inst)
  32.    for i,v in next, cache do
  33.        if v[1] == Inst then
  34.            return true, v[2]
  35.        end
  36.    end
  37.    return false
  38. end
  39.  
  40. getgenv().require = function(inst)
  41.    CachedStatus, Result = IsCached(inst)
  42.    if CachedStatus == false and Result == nil then
  43.        result = loadstring(inst.Source)()
  44.        table.insert(cache, {inst, result})
  45.     return result
  46.    else
  47.        if Result then
  48.            return Result
  49.        end
  50.    end
  51. end
  52.  
  53. getgenv().LoadLibrary = function(str)
  54. return loadstring(game:GetObjects("rbxassetid://9133787982")[1][str].Source)()
  55. end
  56.  
  57. --Delete CoreGui guis
  58. function ExistAndDelete(str)
  59.    task.spawn(function()
  60.        if game:GetService("CoreGui"):FindFirstChild(str) == nil then
  61.            game:GetService("CoreGui"):WaitForChild(str):Destroy()
  62.        else
  63.            game:GetService("CoreGui")[str]:Destroy()
  64.        end
  65.    end)
  66. end
  67.  
  68. ExistAndDelete("RobloxGui")
  69. ExistAndDelete("TeleportGui")
  70. ExistAndDelete("RobloxPromptGui")
  71. ExistAndDelete("RobloxLoadingGui")
  72. ExistAndDelete("PlayerList")
  73. ExistAndDelete("RobloxNetworkPauseNotification")
  74. ExistAndDelete("PurchasePrompt")
  75. ExistAndDelete("HeadsetDisconnectedDialog")
  76. ExistAndDelete("ThemeProvider")
  77. ExistAndDelete("BubbleChat")
  78.  
  79. --Adios all CoreScript!!!
  80. for i,v in pairs(game:GetDescendants()) do
  81.    if v.ClassName == "CoreScript" then
  82.        v:Destroy()
  83.    end
  84. end
  85.  
  86.  
  87. --Chat handler (soo people can see your messages) (YOU CAN EDIT THIS IF THE GAME YOUR PLAYING HAVE A CUSTOM CHAT)
  88. game.Players.LocalPlayer.Chatted:Connect(function(msg)
  89.    if game:GetService("ReplicatedStorage"):FindFirstChild("DefaultChatSystemChatEvents") ~= nil then
  90.     if game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents:FindFirstChild("SayMessageRequest") ~= nil then
  91.     game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents:FindFirstChild("SayMessageRequest"):FireServer(msg, "All")
  92.     end
  93.    end
  94. end)
  95.  
  96. --Delete Chat if found
  97. if game.Players.LocalPlayer:FindFirstChild("PlayerGui") == nil then
  98.    game.Players.LocalPlayer:WaitForChild("PlayerGui")
  99. end
  100.  
  101. if game.Players.LocalPlayer.PlayerGui:FindFirstChild("Chat") == nil then
  102.    game.Players.LocalPlayer.PlayerGui:WaitForChild("Chat"):Destroy()
  103. else
  104.    game.Players.LocalPlayer.PlayerGui["Chat"]:Destroy()
  105. end
  106.  
  107.  
  108.  
  109. --The Health bar always on
  110. game.Players.PlayerAdded:Connect(function(plr)
  111.    task.spawn(function()
  112.        if plr ~= nil then
  113.            if plr.Character == nil then
  114.                plr.CharacterAdded:Wait()
  115.            end
  116.            if plr.Character:FindFirstChild("Humanoid") == nil then
  117.                plr.Character:WaitForChild("Humanoid")
  118.            end
  119.            plr.Character.Humanoid.HealthDisplayType = Enum.HumanoidHealthDisplayType.AlwaysOn
  120.        end
  121.        plr.CharacterAdded:Connect(function(charac)
  122.            if charac:FindFirstChild("Humanoid") == nil then
  123.                charac:WaitForChild("Humanoid")
  124.            end
  125.            charac.Humanoid.HealthDisplayType = Enum.HumanoidHealthDisplayType.AlwaysOn
  126.        end)
  127.    end)
  128. end)
  129.  
  130. task.spawn(function()
  131.    while true do
  132.        task.wait(.1)
  133.        for i,v in pairs(game.Players:GetChildren()) do
  134.            if v.Character ~= nil then
  135.                if v.Character:FindFirstChild("Humanoid") then
  136.                    sethiddenproperty(v.Character.Humanoid, "HealthDisplayType", Enum.HumanoidHealthDisplayType.AlwaysOn)
  137.                end
  138.            end
  139.        end
  140.    end
  141. end)
  142.  
  143.  
  144.  
  145.  
  146. --Funny gui
  147. local RobloxGui = game:GetObjects("rbxassetid://9139773381")[1]
  148. RobloxGui.Parent = game:GetService("CoreGui")
  149.  
  150. --Remove kick blur
  151. task.spawn(function()
  152.   while true do
  153.       task.wait()
  154.       game:GetService("RunService"):SetRobloxGuiFocused(false)
  155.   end
  156. end)
  157.  
  158. --Scripts both taken from a real 2016 roblox studio
  159. --They do the joining stuff etc
  160. task.spawn(function()
  161.    -- Creates the generic "ROBLOX" loading screen on startup
  162.    -- Written by ArceusInator & Ben Tkacheff, 2014
  163.    --
  164.    
  165.    -- Constants
  166.    local PLACEID = game.PlaceId
  167.    
  168.    local MPS = game:GetService('MarketplaceService')
  169.    local UIS = game:GetService('UserInputService')
  170.    local guiService = game:GetService("GuiService")
  171.    local ContextActionService = game:GetService('ContextActionService')
  172.    local RobloxGui = game:GetService("CoreGui"):WaitForChild("RobloxGui")
  173.    
  174.    local startTime = tick()
  175.    
  176.    local COLORS = {
  177.     BLACK = Color3.new(0, 0, 0),
  178.     BACKGROUND_COLOR = Color3.new(45/255, 45/255, 45/255),
  179.     WHITE = Color3.new(1, 1, 1),
  180.     ERROR = Color3.new(253/255,68/255,72/255)
  181.    }
  182.    
  183.    local function getViewportSize()
  184.     while not game.Workspace.CurrentCamera do
  185.     game.Workspace.Changed:wait()
  186.     end
  187.    
  188.     while game.Workspace.CurrentCamera.ViewportSize == Vector2.new(0,0) do
  189.     game.Workspace.CurrentCamera.Changed:wait()
  190.     end
  191.    
  192.     return game.Workspace.CurrentCamera.ViewportSize
  193.    end
  194.    
  195.    --
  196.    -- Variables
  197.    local GameAssetInfo -- loaded by InfoProvider:LoadAssets()
  198.    local currScreenGui, renderSteppedConnection = nil, nil
  199.    local destroyingBackground, destroyedLoadingGui, hasReplicatedFirstElements = false, false, false
  200.    local backgroundImageTransparency = 0
  201.    local isMobile = (UIS.TouchEnabled == true and UIS.MouseEnabled == false and getViewportSize().Y  0 then
  202.     if brickCountChange == nil then
  203.     brickCountChange = guiService:GetBrickCount()
  204.     end
  205.     if guiService:GetBrickCount() - lastBrickCount >= brickCountChange then
  206.     lastBrickCount = guiService:GetBrickCount()
  207.     updateLoadingDots()
  208.     end
  209.     end
  210.     end
  211.    
  212.     if not isTenFootInterface then
  213.     if currentTime - startTime > 5 and currScreenGui.BlackFrame.CloseButton.ImageTransparency > 0 then
  214.     currScreenGui.BlackFrame.CloseButton.ImageTransparency = currScreenGui.BlackFrame.CloseButton.ImageTransparency - fadeAmount
  215.    
  216.     if currScreenGui.BlackFrame.CloseButton.ImageTransparency  0)
  217.    
  218.     if not hasReplicatedFirstElements then
  219.     if game:IsLoaded() then
  220.     handleRemoveDefaultLoadingGui()
  221.     else
  222.     local gameLoadedCon = nil
  223.     gameLoadedCon = game.Loaded:connect(function()
  224.     gameLoadedCon:disconnect()
  225.     gameLoadedCon = nil
  226.     handleRemoveDefaultLoadingGui()
  227.     end)
  228.     end
  229.     else
  230.     wait(5) -- make sure after 5 seconds we remove the default gui, even if the user doesn't
  231.     handleRemoveDefaultLoadingGui()
  232.     end
  233.    end
  234.    
  235.    function handleRemoveDefaultLoadingGui(instant)
  236.     if isTenFootInterface then
  237.     ContextActionService:UnbindCoreAction('CancelGameLoad')
  238.     end
  239.     destroyLoadingElements(instant)
  240.    end
  241.    
  242.    game:GetService("ReplicatedFirst").FinishedReplicating:connect(handleFinishedReplicating)
  243.    if game:GetService("ReplicatedFirst"):IsFinishedReplicating() then
  244.     handleFinishedReplicating()
  245.    end
  246.    
  247.    game:GetService("ReplicatedFirst").RemoveDefaultLoadingGuiSignal:connect(handleRemoveDefaultLoadingGui)
  248.    if game:GetService("ReplicatedFirst"):IsDefaultLoadingGuiRemoved() then
  249.     handleRemoveDefaultLoadingGui()
  250.    end
  251.    
  252.    local UserInputServiceChangedConn;
  253.    local function onUserInputServiceChanged(prop)
  254.     if prop == 'VREnabled' then
  255.     local UseVr = false
  256.     pcall(function() UseVr = UIS.VREnabled end)
  257.    
  258.     if UseVr then
  259.     if UserInputServiceChangedConn then
  260.     UserInputServiceChangedConn:disconnect()
  261.     UserInputServiceChangedConn = nil
  262.     end
  263.     handleRemoveDefaultLoadingGui(true)
  264.     require(RobloxGui.Modules.LoadingScreen3D)
  265.     end
  266.     end
  267.    end
  268.    
  269.    UserInputServiceChangedConn = UIS.Changed:connect(onUserInputServiceChanged)
  270.    onUserInputServiceChanged('VREnabled')
  271. end)
  272.  
  273. task.spawn(function()
  274.    -- Creates all neccessary scripts for the gui on initial load, everything except build tools
  275.    -- Created by Ben T. 10/29/10
  276.    -- Please note that these are loaded in a specific order to diminish errors/perceived load time by user
  277.    
  278.    local scriptContext = game:GetService("ScriptContext")
  279.    local touchEnabled = game:GetService("UserInputService").TouchEnabled
  280.    
  281.    local RobloxGui = game:GetService("CoreGui"):WaitForChild("RobloxGui")
  282.    
  283.    local soundFolder = Instance.new("Folder")
  284.    soundFolder.Name = "Sounds"
  285.    soundFolder.Parent = RobloxGui
  286.    
  287.    -- This can be useful in cases where a flag configuration issue causes requiring a CoreScript to fail
  288.    local function safeRequire(moduleScript)
  289.     local moduleReturnValue = nil
  290.     local success, err = pcall(function() moduleReturnValue = require(moduleScript) end)
  291.     if not success then
  292.     warn("Failure to Start CoreScript module" ..moduleScript.Name.. ".\n" ..err)
  293.     end
  294.     return moduleReturnValue
  295.    end
  296.    
  297.    --CUSTOM FUNCTION FOR SYNAPSE X
  298.    function AddCoreScriptLocal(str)
  299.        local Inject = [==[
  300.            --Get names
  301.            script.Name = script.Name..[[]==]..str..[==[]]
  302.            --FAKE SCRIPT
  303.            local script = Instance.new("LocalScript", game.CoreGui.RobloxGui)
  304.            script.Name = [[CoreScripts/]==]..str..[==[]]
  305.            script.Disabled = true
  306.            script.Source = [[print("Doin' your mom")]]
  307.            
  308.        ]==]
  309.        
  310.        loadstring(Inject..tostring(RobloxGui.CoreScriptSyn[str].Source))()
  311.    end
  312.    
  313.    -- TopBar
  314.    task.spawn(function()
  315.        AddCoreScriptLocal("Topbar")
  316.    end)
  317.    -- SettingsScript
  318.    local luaControlsSuccess, luaControlsFlagValue = pcall(function() return settings():GetFFlag("UseLuaCameraAndControl") end)
  319.    
  320.    -- MainBotChatScript (the Lua part of Dialogs)
  321.    task.spawn(function()
  322.        AddCoreScriptLocal("MainBotChatScript2")
  323.    end)
  324.    
  325.    -- In-game notifications script
  326.    task.spawn(function()
  327.        AddCoreScriptLocal("NotificationScript2")
  328.    end)
  329.    -- Performance Stats Management
  330.    task.spawn(function()
  331.        AddCoreScriptLocal("PerformanceStatsManagerScript")
  332.    end)
  333.    
  334.    -- Chat script
  335.    task.spawn(function() safeRequire(RobloxGui.Modules.ChatSelector) end)
  336.    task.spawn(function() safeRequire(RobloxGui.Modules.PlayerlistModule) end)
  337.    task.spawn(function()
  338.        AddCoreScriptLocal("BubbleChat")
  339.    end)
  340.    -- Purchase Prompt Script (run both versions, they will check the relevant flag)
  341.    task.spawn(function()
  342.        AddCoreScriptLocal("PurchasePromptScript2")
  343.    end)
  344.    task.spawn(function()
  345.        AddCoreScriptLocal("PurchasePromptScript3")
  346.    end)
  347.    
  348.    -- Backpack!
  349.    task.spawn(function() safeRequire(RobloxGui.Modules.BackpackScript) end)
  350.    task.spawn(function()
  351.        AddCoreScriptLocal("VehicleHud")
  352.    end)
  353.    task.spawn(function()
  354.        AddCoreScriptLocal("GamepadMenu")
  355.    end)
  356.    if touchEnabled then -- touch devices don't use same control frame
  357.     -- only used for touch device button generation
  358.     task.spawn(function()
  359.     AddCoreScriptLocal("ContextActionTouch")
  360.        end)
  361.     RobloxGui:WaitForChild("ControlFrame")
  362.     RobloxGui.ControlFrame:WaitForChild("BottomLeftControl")
  363.     RobloxGui.ControlFrame.BottomLeftControl.Visible = false
  364.    end
  365.    
  366.    do
  367.     local UserInputService = game:GetService('UserInputService')
  368.     local function tryRequireVRKeyboard()
  369.     if UserInputService.VREnabled then
  370.     return safeRequire(RobloxGui.Modules.VR.VirtualKeyboard)
  371.     end
  372.     return nil
  373.     end
  374.     if not tryRequireVRKeyboard() then
  375.     UserInputService.Changed:connect(function(prop)
  376.     if prop == "VREnabled" then
  377.     tryRequireVRKeyboard()
  378.     end
  379.     end)
  380.     end
  381.    end
  382.    
  383.    -- Boot up the VR App Shell
  384.    if UserSettings().GameSettings:InStudioMode() then
  385.     local UserInputService = game:GetService('UserInputService')
  386.     local function onVREnabled(prop)
  387.     if prop == "VREnabled" then
  388.     if UserInputService.VREnabled then
  389.     local shellInVRSuccess, shellInVRFlagValue = pcall(function() return settings():GetFFlag("EnabledAppShell3D") end)
  390.     local shellInVR = (shellInVRSuccess and shellInVRFlagValue == true)
  391.     local modulesFolder = RobloxGui.Modules
  392.     local appHomeModule = modulesFolder:FindFirstChild('Shell') and modulesFolder:FindFirstChild('Shell'):FindFirstChild('AppHome')
  393.     if shellInVR and appHomeModule then
  394.     safeRequire(appHomeModule)
  395.     end
  396.     end
  397.     end
  398.     end
  399.    
  400.     task.spawn(function()
  401.     if UserInputService.VREnabled then
  402.     onVREnabled("VREnabled")
  403.     end
  404.     UserInputService.Changed:connect(onVREnabled)
  405.     end)
  406.    end
  407. end)



  • Recent Roblox Scripts