local rs = game:GetService("ReplicatedStorage") local players = game:GetService("Players") local player = players.LocalPlayer local char = player.Character or player.CharacterAdded:Wait() local hrp = char:WaitForChild("HumanoidRootPart") local ts = game:GetService("TeleportService") local event = rs:FindFirstChild("PartTouchedEvent") local folder = workspace:FindFirstChild("ToFind") getgenv().UsedPlayers = getgenv().UsedPlayers or {} if table.find(getgenv().UsedPlayers, player.UserId) then game.StarterGui:SetCore("SendNotification", { Title = "Script", Text = "You have already used this script!", Duration = 5 }) return end table.insert(getgenv().UsedPlayers, player.UserId) local function clearNotifications() for _, gui in ipairs(player.PlayerGui:GetDescendants()) do if gui:IsA("TextLabel") or gui:IsA("TextButton") then if not string.find(gui.Text, "Badge Reward") then pcall(function() gui:Destroy() end) end end end end if folder then for _, part in ipairs(folder:GetChildren()) do clearNotifications() if event and event:IsA("RemoteEvent") then event:FireServer(part.Name) end local touch = part:FindFirstChildOfClass("TouchTransmitter") or part:FindFirstChild("TouchInterest", true) if touch then firetouchinterest(hrp, part, 0) firetouchinterest(hrp, part, 1) end task.wait(0.1) end end task.wait(2) local screenGui = Instance.new("ScreenGui", player.PlayerGui) local frame = Instance.new("Frame", screenGui) frame.AnchorPoint = Vector2.new(0, 0.5) frame.Position = UDim2.new(0, 10, 0.5, 0) frame.Size = UDim2.new(0, 200, 0, 100) frame.BackgroundColor3 = Color3.fromRGB(25, 25, 25) frame.BorderSizePixel = 0 local text = Instance.new("TextLabel", frame) text.Size = UDim2.new(1, 0, 0.5, 0) text.Text = "Rejoin the game?" text.TextColor3 = Color3.new(1, 1, 1) text.BackgroundTransparency = 1 text.Font = Enum.Font.GothamBold text.TextSize = 20 local yesBtn = Instance.new("TextButton", frame) yesBtn.Position = UDim2.new(0, 10, 0.6, 0) yesBtn.Size = UDim2.new(0.4, -5, 0.3, 0) yesBtn.Text = "Yes" yesBtn.BackgroundColor3 = Color3.fromRGB(0, 170, 0) yesBtn.TextColor3 = Color3.new(1, 1, 1) yesBtn.Font = Enum.Font.GothamBold yesBtn.TextSize = 18 local noBtn = Instance.new("TextButton", frame) noBtn.Position = UDim2.new(0.5, 5, 0.6, 0) noBtn.Size = UDim2.new(0.4, -5, 0.3, 0) noBtn.Text = "No" noBtn.BackgroundColor3 = Color3.fromRGB(170, 0, 0) noBtn.TextColor3 = Color3.new(1, 1, 1) noBtn.Font = Enum.Font.GothamBold noBtn.TextSize = 18 yesBtn.MouseButton1Click:Connect(function() ts:Teleport(game.PlaceId, player) end) noBtn.MouseButton1Click:Connect(function() screenGui:Destroy() end)