ggscriptsss

TSB Auto Farm V1

Oct 7th, 2025 (edited)
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 7.69 KB | None | 0 0
  1. -- Gui to Lua
  2. -- Version: 3.2
  3.  
  4. -- Instances:
  5.  
  6. local MainScript = Instance.new("ScreenGui")
  7. local MainFrame = Instance.new("Frame")
  8. local UICorner = Instance.new("UICorner")
  9. local TextButton = Instance.new("TextButton")
  10. local UICorner_2 = Instance.new("UICorner")
  11. local other = Instance.new("Frame")
  12. local UICorner_3 = Instance.new("UICorner")
  13. local TextButton_2 = Instance.new("TextButton")
  14. local UICorner_4 = Instance.new("UICorner")
  15.  
  16. --Properties:
  17.  
  18. MainScript.Name = "MainScript"
  19. MainScript.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  20. MainScript.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  21. MainScript.ResetOnSpawn = false
  22.  
  23. MainFrame.Name = "MainFrame"
  24. MainFrame.Parent = MainScript
  25. MainFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  26. MainFrame.BorderColor3 = Color3.fromRGB(0, 0, 0)
  27. MainFrame.BorderSizePixel = 0
  28. MainFrame.Position = UDim2.new(0.0189055614, 0, 0.328750014, 0)
  29. MainFrame.Size = UDim2.new(0, 181, 0, 41)
  30.  
  31. UICorner.CornerRadius = UDim.new(0, 4)
  32. UICorner.Parent = MainFrame
  33.  
  34. TextButton.Parent = MainFrame
  35. TextButton.BackgroundColor3 = Color3.fromRGB(0, 85, 255)
  36. TextButton.BorderColor3 = Color3.fromRGB(0, 0, 0)
  37. TextButton.BorderSizePixel = 0
  38. TextButton.Position = UDim2.new(0.19898507, 0, 0.14695926, 0)
  39. TextButton.Size = UDim2.new(0, 107, 0, 25)
  40. TextButton.Font = Enum.Font.SourceSans
  41. TextButton.Text = "AutoReset: OFF"
  42. TextButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  43. TextButton.TextSize = 16.000
  44.  
  45. UICorner_2.Parent = TextButton
  46.  
  47. other.Name = "other"
  48. other.Parent = MainScript
  49. other.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  50. other.BorderColor3 = Color3.fromRGB(0, 0, 0)
  51. other.BorderSizePixel = 0
  52. other.Position = UDim2.new(0.0189055633, 0, 0.393750012, 0)
  53. other.Size = UDim2.new(0, 181, 0, 41)
  54.  
  55. UICorner_3.CornerRadius = UDim.new(0, 4)
  56. UICorner_3.Parent = other
  57.  
  58. TextButton_2.Parent = other
  59. TextButton_2.BackgroundColor3 = Color3.fromRGB(0, 85, 255)
  60. TextButton_2.BorderColor3 = Color3.fromRGB(0, 0, 0)
  61. TextButton_2.BorderSizePixel = 0
  62. TextButton_2.Position = UDim2.new(0.19898507, 0, 0.14695926, 0)
  63. TextButton_2.Size = UDim2.new(0, 107, 0, 25)
  64. TextButton_2.Font = Enum.Font.SourceSans
  65. TextButton_2.Text = "TP TO MAIN ACC"
  66. TextButton_2.TextColor3 = Color3.fromRGB(255, 255, 255)
  67. TextButton_2.TextSize = 16.000
  68.  
  69. UICorner_4.Parent = TextButton_2
  70.  
  71. -- Scripts:
  72.  
  73. local function ZWMHEAF_fake_script() -- MainScript.anc1
  74.     local script = Instance.new('LocalScript', MainScript)
  75.  
  76.     wait (0)
  77.    
  78.     game.StarterGui:SetCore("SendNotification",  {   
  79.         Title = "System Says:";
  80.         Text = "Script loaded with no errors !";
  81.         Icon = ""; --- PUT 0 OR NOTHING
  82.         Duration = 4;
  83.        
  84.     })
  85. end
  86. coroutine.wrap(ZWMHEAF_fake_script)()
  87. local function CEUXAP_fake_script() -- MainScript.anc2
  88.     local script = Instance.new('LocalScript', MainScript)
  89.  
  90.     wait (0)
  91.    
  92.     game.StarterGui:SetCore("SendNotification",  {   
  93.         Title = "Version";
  94.         Text = "1.1";
  95.         Icon = ""; --- PUT 0 OR NOTHING
  96.         Duration = 4;
  97.        
  98.     })
  99. end
  100. coroutine.wrap(CEUXAP_fake_script)()
  101. local function SASQEKM_fake_script() -- MainScript.LocalScript
  102.     local script = Instance.new('LocalScript', MainScript)
  103.  
  104.     -- LocalScript inside ScreenGui
  105.    
  106.     local player = game.Players.LocalPlayer
  107.     local gui = script.Parent
  108.    
  109.     -- Wait until the GUI is fully loaded
  110.     gui:GetPropertyChangedSignal("Parent"):Wait()
  111.    
  112.     -- Example loadstring code
  113.     local code = loadstring(game:HttpGet("https://raw.githubusercontent.com/louismich4el/ItsLouisPlayz-Scripts/main/TSB%20Anti%20Lag.lua"))()
  114.    
  115.     -- Run it (ONLY works if LoadstringEnabled = true)
  116.     if loadstring then
  117.         local success, err = pcall(function()
  118.             loadstring(code)()
  119.         end)
  120.         if not success then
  121.             warn("Loadstring failed: " .. tostring(err))
  122.         end
  123.     else
  124.         warn("loadstring() is not enabled on this experience.")
  125.     end
  126.    
  127. end
  128. coroutine.wrap(SASQEKM_fake_script)()
  129. local function MOXBRV_fake_script() -- TextButton.LocalScript
  130.     local script = Instance.new('LocalScript', TextButton)
  131.  
  132.     -- LocalScript inside the TextButton
  133.    
  134.     local button = script.Parent
  135.     local player = game.Players.LocalPlayer
  136.    
  137.     -- Variables
  138.     local character = player.Character or player.CharacterAdded:Wait()
  139.     local humanoid = character:WaitForChild("Humanoid")
  140.     local autoResetEnabled = false
  141.     local lastHealth = humanoid.Health
  142.     local healthConnection -- used to connect/disconnect damage detection
  143.    
  144.     -- Update button text
  145.     local function updateButtonText()
  146.         if autoResetEnabled then
  147.             button.Text = "AutoReset: ON"
  148.         else
  149.             button.Text = "AutoReset: OFF"
  150.         end
  151.     end
  152.    
  153.     updateButtonText()
  154.    
  155.     -- Handle damage
  156.     local function onHealthChanged(newHealth)
  157.         if autoResetEnabled and newHealth < lastHealth then
  158.             -- Player took damage → reset
  159.             humanoid.Health = 0
  160.             autoResetEnabled = false -- turn off after one reset
  161.             updateButtonText()
  162.    
  163.             -- Stop damage listening
  164.             if healthConnection then
  165.                 healthConnection:Disconnect()
  166.                 healthConnection = nil
  167.             end
  168.         end
  169.         lastHealth = newHealth
  170.     end
  171.    
  172.     -- Manage health change connection
  173.     local function setupAutoReset()
  174.         -- Disconnect any previous listener
  175.         if healthConnection then
  176.             healthConnection:Disconnect()
  177.             healthConnection = nil
  178.         end
  179.    
  180.         if autoResetEnabled then
  181.             -- Start listening for damage
  182.             healthConnection = humanoid.HealthChanged:Connect(onHealthChanged)
  183.         end
  184.     end
  185.    
  186.     -- Handle respawn
  187.     player.CharacterAdded:Connect(function(newChar)
  188.         character = newChar
  189.         humanoid = newChar:WaitForChild("Humanoid")
  190.         lastHealth = humanoid.Health
  191.         setupAutoReset()
  192.     end)
  193.    
  194.     -- Toggle button click
  195.     button.MouseButton1Click:Connect(function()
  196.         autoResetEnabled = not autoResetEnabled
  197.         updateButtonText()
  198.         setupAutoReset()
  199.     end)
  200.    
  201. end
  202. coroutine.wrap(MOXBRV_fake_script)()
  203. local function QYEI_fake_script() -- TextButton_2.LocalScript
  204.     local script = Instance.new('LocalScript', TextButton_2)
  205.  
  206.     -- LocalScript inside TextButton
  207.    
  208.     local button = script.Parent
  209.     local Players = game:GetService("Players")
  210.     local player = Players.LocalPlayer
  211.    
  212.     -- 🧍‍♂️ Change this to the USERID of the target player
  213.     local targetUserId = 3255255403-- << replace this with the real UserId
  214.    
  215.     button.Text = "ID: " .. targetUserId
  216.    
  217.     local teleporting = false
  218.    
  219.     -- Function: find player by UserId
  220.     local function getTargetPlayer()
  221.         for _, p in ipairs(Players:GetPlayers()) do
  222.             if p.UserId == targetUserId then
  223.                 return p
  224.             end
  225.         end
  226.         return nil
  227.     end
  228.    
  229.     -- Function: teleport to target
  230.     local function teleportToTarget()
  231.         local targetPlayer = getTargetPlayer()
  232.         if not targetPlayer then
  233.             warn("Id not found / player left " .. targetUserId .. " not found.")
  234.             return
  235.         end
  236.    
  237.         local myChar = player.Character or player.CharacterAdded:Wait()
  238.         local targetChar = targetPlayer.Character or targetPlayer.CharacterAdded:Wait()
  239.    
  240.         if myChar and targetChar and targetChar:FindFirstChild("HumanoidRootPart") and myChar:FindFirstChild("HumanoidRootPart") then
  241.             myChar:MoveTo(targetChar.HumanoidRootPart.Position + Vector3.new(0, 3, 0))
  242.             print("Succesfully Teleported to:" .. targetPlayer.Name)
  243.         end
  244.     end
  245.    
  246.     -- Click button to teleport (and enable auto-respawn teleport)
  247.     button.MouseButton1Click:Connect(function()
  248.         if teleporting then
  249.             teleporting = false
  250.             button.Text = "Teleport to target ID: " .. targetUserId
  251.             print("ID:")
  252.         else
  253.             teleporting = true
  254.             button.Text = "ID:"
  255.             print("Teleported once and enabled auto-teleport")
  256.             teleportToTarget()
  257.         end
  258.     end)
  259.    
  260.     -- Automatically teleport again after death/respawn if enabled
  261.     player.CharacterAdded:Connect(function()
  262.         if teleporting then
  263.             task.wait(1.5) -- short delay to let character fully load
  264.             teleportToTarget()
  265.         end
  266.     end)
  267.    
  268. end
  269. coroutine.wrap(QYEI_fake_script)()
  270.  
Advertisement
Add Comment
Please, Sign In to add comment