Created
January 26, 2026 00:59
-
-
Save c584pgx9tz-design/a98eb8a15c4e26d02ac786c5c8469795 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- ====== PERSISTENT AUTO-RUN ON TELEPORT ====== | |
| local SCRIPT = [[ | |
| task.delay(3, function() | |
| -- Re-queue for NEXT teleport (THIS WAS THE BUG) | |
| if queue_on_teleport then | |
| queue_on_teleport(SCRIPT) | |
| end | |
| -- ====== OLD WORKING SCRIPT START ====== | |
| local Players = game:GetService("Players") | |
| local TeleportService = game:GetService("TeleportService") | |
| local player = Players.LocalPlayer | |
| local enabled = true | |
| local teleporting = false | |
| -- GUI | |
| local gui = Instance.new("ScreenGui") | |
| gui.Name = "ItemTeleportGUI" | |
| gui.Parent = player:WaitForChild("PlayerGui") | |
| local frame = Instance.new("Frame", gui) | |
| frame.Size = UDim2.new(0, 240, 0, 100) | |
| frame.Position = UDim2.new(0.5, -120, 0.3, 0) | |
| frame.BackgroundColor3 = Color3.fromRGB(30,30,30) | |
| Instance.new("UICorner", frame) | |
| local toggle = Instance.new("TextButton", frame) | |
| toggle.Size = UDim2.new(1, -10, 0, 40) | |
| toggle.Position = UDim2.new(0, 5, 0, 5) | |
| toggle.Text = "Teleport: ON" | |
| toggle.BackgroundColor3 = Color3.fromRGB(50,50,50) | |
| toggle.TextColor3 = Color3.fromRGB(0,255,0) | |
| toggle.Font = Enum.Font.SourceSansBold | |
| toggle.TextSize = 16 | |
| local status = Instance.new("TextLabel", frame) | |
| status.Size = UDim2.new(1, -10, 0, 40) | |
| status.Position = UDim2.new(0, 5, 0, 55) | |
| status.BackgroundTransparency = 1 | |
| status.Text = "New Item: No" | |
| status.TextColor3 = Color3.fromRGB(255,255,255) | |
| status.Font = Enum.Font.SourceSansBold | |
| status.TextSize = 16 | |
| toggle.MouseButton1Click:Connect(function() | |
| enabled = not enabled | |
| toggle.Text = enabled and "Teleport: ON" or "Teleport: OFF" | |
| toggle.TextColor3 = enabled and Color3.fromRGB(0,255,0) or Color3.fromRGB(255,0,0) | |
| end) | |
| -- Teleport | |
| local function doTeleport() | |
| if not enabled or teleporting then return end | |
| teleporting = true | |
| TeleportService:Teleport(game.PlaceId) | |
| task.delay(10, function() | |
| teleporting = false | |
| end) | |
| end | |
| -- Item Detection | |
| local function onNewItem(item) | |
| if not enabled then return end | |
| status.Text = "New Item: YES" | |
| task.delay(1, function() | |
| status.Text = "New Item: No" | |
| doTeleport() | |
| end) | |
| end | |
| player:WaitForChild("Backpack").ChildAdded:Connect(onNewItem) | |
| local function hookCharacter(char) | |
| char.ChildAdded:Connect(onNewItem) | |
| end | |
| if player.Character then hookCharacter(player.Character) end | |
| player.CharacterAdded:Connect(hookCharacter) | |
| print("[LOADED] Item teleport script active (persistent)") | |
| -- ====== OLD WORKING SCRIPT END ====== | |
| end) | |
| ]] | |
| -- Queue for future teleports | |
| if queue_on_teleport then | |
| queue_on_teleport(SCRIPT) | |
| end | |
| -- Run in current server | |
| loadstring(SCRIPT)() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment