Advertisement
ScratchyBoyyoScripts

***MY*** GUI

Sep 1st, 2019
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 11.67 KB | None | 0 0
  1. -- Farewell Infortality.
  2. -- Version: 2.82
  3. -- Instances:
  4. local Boyyo = Instance.new("ScreenGui")
  5. local Frame = Instance.new("Frame")
  6. local TextBox = Instance.new("TextBox")
  7. local TextBox_2 = Instance.new("TextBox")
  8. local TextBox_3 = Instance.new("TextBox")
  9. local TextBox_4 = Instance.new("TextBox")
  10. local TextButton = Instance.new("TextButton")
  11. local TextButton_2 = Instance.new("TextButton")
  12. --Properties:
  13. Boyyo.Name = "Boyyo"
  14. Boyyo.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  15. Boyyo.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  16.  
  17. Frame.Parent = Boyyo
  18. Frame.Active = true
  19. Frame.BackgroundColor3 = Color3.new(0, 1, 0.0666667)
  20. Frame.BackgroundTransparency = 0.40000000596046
  21. Frame.BorderColor3 = Color3.new(0, 0, 0)
  22. Frame.BorderSizePixel = 5
  23. Frame.Position = UDim2.new(0.640510917, 0, 0.0205047317, 0)
  24. Frame.Selectable = true
  25. Frame.Size = UDim2.new(0, 381, 0, 356)
  26.  
  27. TextBox.Parent = Frame
  28. TextBox.BackgroundColor3 = Color3.new(1, 1, 1)
  29. TextBox.BackgroundTransparency = 1
  30. TextBox.Size = UDim2.new(0, 381, 0, 50)
  31. TextBox.Font = Enum.Font.SciFi
  32. TextBox.PlaceholderColor3 = Color3.new(0, 0, 0)
  33. TextBox.Text = "Scratch's FPS GUI"
  34. TextBox.TextColor3 = Color3.new(0, 0, 0)
  35. TextBox.TextSize = 30
  36.  
  37. TextBox_2.Parent = Frame
  38. TextBox_2.BackgroundColor3 = Color3.new(1, 1, 1)
  39. TextBox_2.BackgroundTransparency = 1
  40. TextBox_2.Position = UDim2.new(0, 0, 0, 74)
  41. TextBox_2.Size = UDim2.new(0, 207, 0, 67)
  42. TextBox_2.Font = Enum.Font.SciFi
  43. TextBox_2.PlaceholderColor3 = Color3.new(0, 0, 0)
  44. TextBox_2.Text = "Press For ESP"
  45. TextBox_2.TextColor3 = Color3.new(0, 0, 0)
  46. TextBox_2.TextSize = 30
  47.  
  48. TextBox_3.Parent = Frame
  49. TextBox_3.BackgroundColor3 = Color3.new(1, 1, 1)
  50. TextBox_3.BackgroundTransparency = 1
  51. TextBox_3.Position = UDim2.new(0, 0, 0, 140)
  52. TextBox_3.Size = UDim2.new(0, 255, 0, 68)
  53. TextBox_3.Font = Enum.Font.SciFi
  54. TextBox_3.PlaceholderColor3 = Color3.new(0, 0, 0)
  55. TextBox_3.Text = "Press For Lock On"
  56. TextBox_3.TextColor3 = Color3.new(0, 0, 0)
  57. TextBox_3.TextSize = 30
  58.  
  59. TextBox_4.Parent = Frame
  60. TextBox_4.BackgroundColor3 = Color3.new(1, 1, 1)
  61. TextBox_4.BackgroundTransparency = 1
  62. TextBox_4.Position = UDim2.new(0, 65, 0, 196)
  63. TextBox_4.Size = UDim2.new(0, 273, 0, 130)
  64. TextBox_4.Font = Enum.Font.SciFi
  65. TextBox_4.PlaceholderColor3 = Color3.new(0, 0, 0)
  66. TextBox_4.Text = "MORE COMING SOON!!!!"
  67. TextBox_4.TextColor3 = Color3.new(0, 0, 0)
  68. TextBox_4.TextSize = 30
  69.  
  70. TextButton.Parent = Frame
  71. TextButton.BackgroundColor3 = Color3.new(0, 0, 0)
  72. TextButton.Position = UDim2.new(0.664827466, 0, 0.427764714, 0)
  73. TextButton.Size = UDim2.new(0, 47, 0, 50)
  74. TextButton.Style = Enum.ButtonStyle.RobloxRoundButton
  75. TextButton.Font = Enum.Font.SourceSans
  76. TextButton.Text = ""
  77. TextButton.TextColor3 = Color3.new(0, 0, 0)
  78. TextButton.TextSize = 14
  79.  
  80. TextButton_2.Parent = Frame
  81. TextButton_2.BackgroundColor3 = Color3.new(0, 0, 0)
  82. TextButton_2.Position = UDim2.new(0.518619895, 0, 0.233523399, 0)
  83. TextButton_2.Size = UDim2.new(0, 47, 0, 50)
  84. TextButton_2.Style = Enum.ButtonStyle.RobloxRoundButton
  85. TextButton_2.Font = Enum.Font.SourceSans
  86. TextButton_2.Text = ""
  87. TextButton_2.TextColor3 = Color3.new(0, 0, 0)
  88. TextButton_2.TextSize = 14
  89. -- Scripts:
  90. function SCRIPT_BCNE73_FAKESCRIPT() -- TextButton.LocalScript
  91.     local script = Instance.new('LocalScript')
  92.     script.Parent = TextButton
  93.     function onButtonClicked()
  94.     a = true
  95.     end end if not a then
  96.     local ray2 = Ray.new(Plr.Character.Head.CFrame.p,(Character.Torso.CFrame.p - Plr.Character.Head.CFrame.p).unit * 1000)
  97.     local Hit2,Pos2 = Workspace:FindPartOnRay(ray,Plr.Character)
  98.     if Hit2 then
  99.     if(Hit2.Parent == Character or Hit2.Parent.Parent == Character2)then
  100.     a = true
  101.     end end end
  102.     return a
  103.     end
  104.     local function PassChecks(Player)
  105.     local PerformTeamChecks = #Game.Teams:GetTeams()>1
  106.     if Player.Character ~= nil and Player ~= Plr then
  107.     if not PerformTeamChecks or(PerformTeamChecks and Player.TeamColor ~= Plr.TeamColor)then
  108.     local h = Player.Character:findFirstChild("Humanoid")
  109.     if h then
  110.     if h.MaxHealth ~= math.huge then
  111.     if h.Health > 0 then
  112.     return true
  113.     end end end end end end
  114.     local function GetRandomPlayer()
  115.     for i,v in pairs(Game.Players:GetPlayers())do
  116.     if PassChecks(v)then
  117.     return v
  118.     end end end
  119.     local function DoESP(Player)
  120.     local Af = Instance.new("BillboardGui",Plr.PlayerGui)
  121.     Af.Name = "AIMBOTESP@"..Player.Name
  122.     Af.Active = true
  123.     Af.Adornee = Player.Character.Torso
  124.     Af.Size = UDim2.new(15,0,15,0)
  125.     Af.AlwaysOnTop = true
  126.     local f = Instance.new("ImageLabel",Af)
  127.     f.Size = UDim2.new(1,0,0.7,0)
  128.     f.Image = "http://www.roblox.com/asset/?id=124537225"
  129.     f.BackgroundTransparency = 1
  130.     local f = Instance.new("ImageLabel",Af)
  131.     f.Size = UDim2.new(0.5,0,0.35,0)
  132.     f.Position = UDim2.new(0.25,0,0.175,0)
  133.     f.Image = "http://www.roblox.com/asset/?id=124537225"
  134.     f.BackgroundTransparency = 1
  135.     local a = Instance.new("Frame",Af)
  136.     a.Size = UDim2.new(1,0,0.3,0)
  137.     a.Position = UDim2.new(0,0,0.7,0)
  138.     a.BackgroundTransparency = 1
  139.     local s = Instance.new("TextLabel",a)
  140.     s.Size = UDim2.new(1,0,1,0)
  141.     s.BackgroundTransparency = 1
  142.     s.TextColor3 = Color3.new(1,0,0)
  143.     s.Font = "ArialBold"
  144.     s.FontSize = "Size18"
  145.     s.Name = "Health"
  146.     s.Text = "Health: "
  147.     local obj = Instance.new("ObjectValue",Af)
  148.     obj.Name = "Player"
  149.     obj.Value = Player
  150.     local C_;C_ = Game.Players.PlayerRemoving:connect(function(P)
  151.     if P == Player then
  152.     Af:Destroy()
  153.     C_:disconnect()
  154.     end end)
  155.     local C;C = Player.CharacterAdded:connect(function()
  156.     Af:Destroy()
  157.     C:disconnect()
  158.     end)end
  159.     local function GetNearestVisiblePlayer()
  160.     local LastDistance,LastPlayer = math.huge
  161.     for i,v in pairs(Game.Players:GetPlayers())do
  162.     if PassChecks(v)then
  163.     if RayCastCheck(v.Character)then
  164.     local Dist =(Plr.Character.Torso.CFrame.p - v.Character.Torso.CFrame.p).magnitude
  165.     if Dist < LastDistance then
  166.     LastDistance = Dist
  167.     LastPlayer = v
  168.     end end end end
  169.     return LastPlayer or GetRandomPlayer()
  170.     end
  171.     local function Focus(Player)
  172.     Yielding = true
  173.     if not Player then Yielding = false return end
  174.     if not IsBotting then Yielding = false return end
  175.     if not PassChecks(Player)then Yielding = false return end
  176.     if not RayCastCheck(Player.Character)then Yielding = false return end
  177.     if Player.Character.Humanoid.Health <= 0 then Yielding = false return end
  178.     for i,v in pairs(Player.Character:GetChildren())do
  179.     if v:IsA("ForceField")then
  180.     v:Destroy()
  181.     elseif v:IsA("Humanoid")and OHKO then
  182.     v.MaxHealth = 1
  183.     end end
  184.     CC.Focus = Player.Character.Head.CFrame * CFrame.new(0,-0.02,0)
  185.     end
  186.     Mouse.KeyDown:connect(function(Key)
  187.     if Key:lower()== HotKey1:lower()then
  188.     IsBotting = not IsBotting
  189.     elseif Key:lower()== HotKey2:lower()then
  190.     OHKO = not OHKO
  191.     end end)
  192.     local Con
  193.     Game:GetService("RunService").Stepped:connect(function()
  194.     if IsBotting then
  195.     if not Yielding then
  196.     pcall(function()Con:disconnect()end)
  197.     Con = Game:GetService("RunService").RenderStepped:connect(function()
  198.     Focus(GetNearestVisiblePlayer())
  199.     end)end end end)
  200.     Game:GetService("RunService").Stepped:connect(function()
  201.     pcall(function()Plr.Character:findFirstChild("Ammo",true).Value = 6 end)
  202.     pcall(function()Plr.Character:findFirstChild("Ammo2",true).Value = 6 end)
  203.     pcall(function()Plr.Character:findFirstChild("Clip",true).Value = 6 end)
  204.     if OHKO then pcall(function()Plr.Character:findFirstChild("aim",true).Value = true end)end
  205.     pcall(function()
  206.     if IsBotting then Plr.CameraMode = Enum.CameraMode.LockFirstPerson end
  207.     if not IsBotting then Plr.CameraMode = Enum.CameraMode.Classic end
  208.     end)end)
  209.     Game:GetService("RunService").Stepped:connect(function()
  210.     for i,v in pairs(Game.Players:GetPlayers())do
  211.     if PassChecks(v)then
  212.     if not Plr.PlayerGui:findFirstChild("AIMBOTESP@"..v.Name)then
  213.     DoESP(v)
  214.     else
  215.     pcall(function()
  216.     Plr.PlayerGui:findFirstChild("AIMBOTESP@"..v.Name):findFirstChild("Health",true).Text = "Health: "..math.floor(Plr.PlayerGui:findFirstChild("AIMBOTESP@"..v.Name).Player.Value.Character.Humanoid.Health)
  217.     end)end end end end)
  218.     end
  219.    
  220.     script.Parent.MouseButton1Click:connect(onButtonClicked)
  221.  
  222. end
  223. coroutine.resume(coroutine.create(SCRIPT_BCNE73_FAKESCRIPT))
  224. function SCRIPT_YGHQ90_FAKESCRIPT() -- TextButton_2.LocalScript
  225.     local script = Instance.new('LocalScript')
  226.     script.Parent = TextButton_2
  227.     function onButtonClicked()
  228.     local Holder = Instance.new("Folder", game.CoreGui)
  229.     Holder.Name = "ESP"
  230.    
  231.     local Box = Instance.new("BoxHandleAdornment")
  232.     Box.Name = "nilBox"
  233.     Box.Size = Vector3.new(4, 7, 4)
  234.     Box.Color3 = Color3.new(100 / 255, 100 / 255, 100 / 255)
  235.     Box.Transparency = 0.7
  236.     Box.ZIndex = 0
  237.     Box.AlwaysOnTop = true
  238.     Box.Visible = true
  239.    
  240.     local NameTag = Instance.new("BillboardGui")
  241.     NameTag.Name = "nilNameTag"
  242.     NameTag.Enabled = false
  243.     NameTag.Size = UDim2.new(0, 200, 0, 50)
  244.     NameTag.AlwaysOnTop = true
  245.     NameTag.StudsOffset = Vector3.new(0, 1.8, 0)
  246.     local Tag = Instance.new("TextLabel", NameTag)
  247.     Tag.Name = "Tag"
  248.     Tag.BackgroundTransparency = 1
  249.     Tag.Position = UDim2.new(0, -50, 0, 0)
  250.     Tag.Size = UDim2.new(0, 300, 0, 20)
  251.     Tag.TextSize = 20
  252.     Tag.TextColor3 = Color3.new(100 / 255, 100 / 255, 100 / 255)
  253.     Tag.TextStrokeColor3 = Color3.new(0 / 255, 0 / 255, 0 / 255)
  254.     Tag.TextStrokeTransparency = 0.4
  255.     Tag.Text = "nil"
  256.     Tag.Font = Enum.Font.SourceSansBold
  257.     Tag.TextScaled = false
  258.    
  259.     local LoadCharacter = function(v)
  260.         repeat wait() until v.Character ~= nil
  261.         v.Character:WaitForChild("Humanoid")
  262.         local vHolder = Holder:FindFirstChild(v.Name)
  263.         vHolder:ClearAllChildren()
  264.         local b = Box:Clone()
  265.         b.Name = v.Name .. "Box"
  266.         b.Adornee = v.Character
  267.         b.Parent = vHolder
  268.         local t = NameTag:Clone()
  269.         t.Name = v.Name .. "NameTag"
  270.         t.Enabled = true
  271.         t.Parent = vHolder
  272.         t.Adornee = v.Character:WaitForChild("Head", 5)
  273.         if not t.Adornee then
  274.             return UnloadCharacter(v)
  275.         end
  276.         t.Tag.Text = v.Name
  277.         b.Color3 = Color3.new(v.TeamColor.r, v.TeamColor.g, v.TeamColor.b)
  278.         t.Tag.TextColor3 = Color3.new(v.TeamColor.r, v.TeamColor.g, v.TeamColor.b)
  279.         local Update
  280.         local UpdateNameTag = function()
  281.             if not pcall(function()
  282.                 v.Character.Humanoid.DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None
  283.                 local maxh = math.floor(v.Character.Humanoid.MaxHealth)
  284.                 local h = math.floor(v.Character.Humanoid.Health)
  285.                 t.Tag.Text = v.Name .. "\n" .. ((maxh ~= 0 and tostring(math.floor((h / maxh) * 100))) or "0") .. "%  " .. tostring(h) .. "/" .. tostring(maxh)
  286.             end) then
  287.                 Update:Disconnect()
  288.             end
  289.         end
  290.         UpdateNameTag()
  291.         Update = v.Character.Humanoid.Changed:Connect(UpdateNameTag)
  292.     end
  293.    
  294.     local UnloadCharacter = function(v)
  295.         local vHolder = Holder:FindFirstChild(v.Name)
  296.         if vHolder and (vHolder:FindFirstChild(v.Name .. "Box") ~= nil or vHolder:FindFirstChild(v.Name .. "NameTag") ~= nil) then
  297.             vHolder:ClearAllChildren()
  298.         end
  299.     end
  300.    
  301.     local LoadPlayer = function(v)
  302.         local vHolder = Instance.new("Folder", Holder)
  303.         vHolder.Name = v.Name
  304.         v.CharacterAdded:Connect(function()
  305.             pcall(LoadCharacter, v)
  306.         end)
  307.         v.CharacterRemoving:Connect(function()
  308.             pcall(UnloadCharacter, v)
  309.         end)
  310.         v.Changed:Connect(function(prop)
  311.             if prop == "TeamColor" then
  312.                 UnloadCharacter(v)
  313.                 wait()
  314.                 LoadCharacter(v)
  315.             end
  316.         end)
  317.         LoadCharacter(v)
  318.     end
  319.    
  320.     local UnloadPlayer = function(v)
  321.         UnloadCharacter(v)
  322.         local vHolder = Holder:FindFirstChild(v.Name)
  323.         if vHolder then
  324.             vHolder:Destroy()
  325.         end
  326.     end
  327.    
  328.     for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  329.         spawn(function() pcall(LoadPlayer, v) end)
  330.     end
  331.    
  332.     game:GetService("Players").PlayerAdded:Connect(function(v)
  333.         pcall(LoadPlayer, v)
  334.     end)
  335.    
  336.     game:GetService("Players").PlayerRemoving:Connect(function(v)
  337.         pcall(UnloadPlayer, v)
  338.     end)
  339.    
  340.     game:GetService("Players").LocalPlayer.NameDisplayDistance = 0
  341.    
  342.     end
  343.    
  344.     script.Parent.MouseButton1Click:connect(onButtonClicked)
  345.  
  346. end
  347. coroutine.resume(coroutine.create(SCRIPT_YGHQ90_FAKESCRIPT))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement