Advertisement
2AreYouMental110

color block [UPDATED]

Oct 12th, 2022 (edited)
1,729
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.56 KB | None | 0 0
  1. -- https://web.roblox.com/games/5926001758/Color-Block
  2.  
  3.  
  4.  
  5. getgenv().detectgoodorbad = false -- wouldnt recommend
  6. getgenv().autotp = false
  7.  
  8. for i, v in pairs(game.Players.LocalPlayer.Character:GetDescendants()) do
  9.     if v.Name == "BanBehavior" and v.Parent then
  10.         v:Destroy()
  11.     else
  12.         if v.Name == "CheckCheat" and v.Parent then
  13.             v:Destroy()
  14.         end
  15.     end
  16. end
  17.  
  18. local Library = loadstring(game:HttpGet("https://raw.githubusercontent.com/xHeptc/Kavo-UI-Library/main/source.lua"))()
  19. local w = Library.CreateLib("color block", "Sentinel")
  20. local a = w:NewTab("color block")
  21. local b = w:NewTab("other helpful stuff")
  22. local a1 = a:NewSection("color block")
  23. local b1 = b:NewSection("other helpful stuff")
  24.  
  25. a1:NewToggle("auto tp to block", "autotp", function(bool)
  26.     getgenv().autotp = bool
  27.     if bool then
  28.         autotp()
  29.     end
  30. end)
  31.  
  32. b1:NewButton("infinite yield", "credits to original creators", function()
  33.     loadstring(game:HttpGet("https://raw.githubusercontent.com/EdgeIY/infiniteyield/master/source"))()
  34. end)
  35.  
  36.  
  37. function autotp()
  38.     spawn(function()
  39.         while getgenv().autotp == true do
  40.             local brickcolor = game:GetService("Players").LocalPlayer.PlayerGui.inGameGui.Frame.Color.BackgroundColor
  41.             for i,v in pairs(game.Workspace.Blocks:GetDescendants()) do
  42.                 if v.ClassName ~= "Model" and v.ClassName ~= "Script" and v.ClassName ~= "TouchTransmitter" then
  43.                     if v.BrickColor == brickcolor then
  44.                         firetouchinterest(game.Players.LocalPlayer.Character.HumanoidRootPart,v)
  45.                         game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(v.CFrame.X,v.CFrame.Y+4.5,v.CFrame.Z)
  46.                         wait()
  47.                     end
  48.                 end
  49.             end
  50.             wait()
  51.         end
  52.     end)
  53. end
  54.  
  55.  
  56.  
  57.  
  58.  
  59. if getgenv().detectgoodorbad == true then
  60.     game.Workspace.Blocks.DescendantAdded:Connect(function(v)
  61.         if v.ClassName ~= "Model" and v.ClassName ~= "Script" and v.ClassName ~= "TouchTransmitter" then
  62.             game:GetService("Players").LocalPlayer.PlayerGui.inGameGui.Frame.Color:GetPropertyChangedSignal("BackgroundColor"):Connect(function()
  63.                 wait(1)
  64.                 if v.BrickColor == game:GetService("Players").LocalPlayer.PlayerGui.inGameGui.Frame.Color.BackgroundColor then
  65.                     v.Color = Color3.fromRGB(0,255,0)
  66.                 else
  67.                     v.Color = Color3.fromRGB(255,0,0)
  68.                 end
  69.             end)
  70.         end
  71.     end)
  72. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement