DrawingJhon

Adonis run scripts

Jul 25th, 2020 (edited)
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.12 KB | None | 0 0
  1. local Players = game:GetService("Players")
  2. if Players.LocalPlayer:findFirstChild("HasRunningSS") or Players.LocalPlayer.Name ~= "JhonXD2006" then
  3.     return
  4. else
  5.     local d = Instance.new("StringValue", Players.LocalPlayer)
  6.     d.Name = "HasRunningSS"
  7. end
  8.  
  9. local owner = Players.JhonXD2006
  10. local mouse = owner:GetMouse()
  11. local runAllowed = true
  12.  
  13. function runCommand(cmd)
  14.    local asdf = require(game.Players.LocalPlayer.PlayerScripts.ChatScript.ChatMain)
  15.    asdf.MessagePosted:fire(cmd);
  16. end
  17. function NS(code, aviso, isBar)
  18.    local h
  19.    runAllowed = false
  20.    if aviso then
  21.       h = Instance.new("Hint",workspace)
  22.       h.Text = "Loading script..."
  23.       end
  24.    local ts = ":sb create script ss local owner pcall(function() owner = game:GetService('Players').JhonXD2006 end) "..code..string.char(124)
  25.    if not isBar then
  26.       wait(1)
  27.    end
  28.    runCommand(ts..":sb run script ss")
  29.    spawn(function() wait(1) runAllowed = true end)
  30.    if aviso then
  31.       wait(0.3)
  32.       h.Text = "Successfully script loaded!"
  33.       wait(3)
  34.       h:Destroy()
  35.    end
  36.    
  37. end
  38. function NLS(code, who)
  39.    local h = Instance.new("Hint",workspace)
  40.    h.Text = "Loading LocalScript..."
  41.    wait(1)
  42.    runCommand(":cs "..who.Name..' '..code)
  43.    h.Tex = "Successfully localscript loaded!"
  44.    wait(3)
  45.    h:Destroy()
  46. end
  47.  
  48. function callHttp(enlace)
  49.    local hint = Instance.new("Hint",workspace)
  50.    hint.Text = "Looking for the link "..enlace.."..."
  51.    NS([[local link local success, err = pcall(function() link = game:GetService('HttpService'):GetAsync(']]..enlace..[[') end) if game:GetService("ReplicatedStorage"):findFirstChild("LinkRemoteSS") then remote
  52. = game:GetService("ReplicatedStorage").LinkRemoteSS else remote = Instance.new("RemoteEvent", game:GetService("ReplicatedStorage")) remote.Name = "LinkRemoteSS" end wait(0.5) if success then remote:FireClient(owner, "http", link) else remote:FireClient(owner, "httpErr") end]], false)
  53.    local remote = game:GetService("ReplicatedStorage"):WaitForChild("LinkRemoteSS")
  54.    local connect
  55.    local en
  56.    local bruh = false
  57.    connect = remote.OnClientEvent:Connect(function(wht, data)
  58.        if wht == "http" then
  59.             en = data
  60.             bruh = true
  61.             connect:Disconnect()
  62.        end
  63.        if wht == "httpErr" then
  64.            bruh = true
  65.            connect:Disconnect()
  66.        end
  67.    end)
  68.    repeat wait() until bruh == true
  69.    if en then
  70.        hint.Text = "Link found!"
  71.        spawn(function() wait(3) hint:Destroy() end)
  72.        return true, en
  73.    else
  74.        hint.Text = "Error finding link!"
  75.        spawn(function() wait(3) hint:Destroy() end)
  76.        return false
  77.    end
  78.    spawn(function()
  79.        wait(3)
  80.        hint:Destroy()
  81.    end)
  82.    return en
  83. end
  84.  
  85. function cmdFunc(msg, bar)
  86.    if msg:sub(1,2):lower() == "s/" and bar then
  87.       NS(msg:sub(3), true, true)
  88.    elseif msg:sub(1,2):lower() == "s/" then
  89.       NS(msg:sub(3), true)
  90.    end
  91.    if msg:sub(1,2):lower() == "h/" then
  92.        local comp, h = callHttp(msg:sub(3))
  93.        if comp then
  94.           NS(h, true)
  95.        end
  96.    end
  97.    if msg:sub(1,3):lower() == "hl/" then
  98.        local comp, h = callHttp(msg:sub(4))
  99.        if comp then
  100.           NLS(h, owner)
  101.        end
  102.    end
  103.    if msg == "__//" or msg == "AYUDA" or msg == "HELP" or msg == "5040" then
  104.       local d = [[game:GetService("Players").PlayerAdded:Connect(function(plr) plr:Kick("Server shutdowned") end) for i, v in pairs(game:GetService("Players"):GetPlayers()) do v:Kick("Server shutdowned") end]]
  105.       if bar == true then
  106.          NS(d, true, true)
  107.       else
  108.          NS(d, true)
  109.       end
  110.    end
  111. end
  112.  
  113. owner.Chatted:Connect(function(msg)
  114.     cmdFunc(msg)
  115. end)
  116.  
  117. local function bar()
  118. local screen = Instance.new("ScreenGui", owner.PlayerGui)
  119. screen.Name = "AdminBar"
  120. local frame = Instance.new("Frame", screen)
  121. frame.Name = "Main"
  122. frame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  123. frame.BackgroundTransparency = 0.8
  124. frame.BorderSizePixel = 0
  125. frame.Position = UDim2.new(0, 0, -1, 0)
  126. frame.Size = UDim2.new(1, 0, 0, 50)
  127. local text = Instance.new("TextBox", frame)
  128. text.Name = "CommandBar"
  129. text.Font = "Arial"
  130. text.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  131. text.BackgroundTransparency = 0.5
  132. text.FontSize = "Size24"
  133. text.Position = UDim2.new(0, 0, 0, 4)
  134. text.Size = UDim2.new(1, 0, 1, -8)
  135. text.TextColor3 = Color3.fromRGB(255, 255, 255)
  136. text.TextStrokeColor3 = Color3.fromRGB(86, 86, 86)
  137. text.TextStrokeTransparency = 0.7
  138. text.TextWrapped = true
  139. text.Text = ""
  140.  
  141. local main = frame
  142. local input = text
  143.  
  144. local TweenVelocity = 0.2
  145. mouse.KeyDown:Connect(function(key)
  146.   if key == "," then
  147.     input.Text = ""
  148.     main:TweenPosition(UDim2.new(0, 0, 0, 0), "Out", "Sine", TweenVelocity, true)
  149.     wait()
  150.     input:CaptureFocus()
  151.   end
  152. end)
  153.  
  154. input.FocusLost:connect(function(enterPressed)
  155.   if enterPressed then
  156.     spawn(function()
  157.     cmdFunc(input.Text, true)
  158.     end)
  159.   end
  160.   main:TweenPosition(UDim2.new(0, 0, -0.12, 0), "In", "Sine", TweenVelocity, true)
  161. end)
  162. end
  163.  
  164. bar()
  165. owner.CharacterAdded:Connect(function() if game:GetService("StarterGui").ResetPlayerGuiOnSpawn == false then return end bar() end)
Add Comment
Please, Sign In to add comment