local player = game.Players.LocalPlayer local playerGui = player:WaitForChild("PlayerGui") local screenGui = Instance.new("ScreenGui") screenGui.Name = "AutoDonateUI" screenGui.ResetOnSpawn = false screenGui.Parent = playerGui local mainFrame = Instance.new("Frame") mainFrame.Name = "MainFrame" mainFrame.Size = UDim2.new(0, 300, 0, 160) mainFrame.Position = UDim2.new(0.5, -150, 0.3, 0) mainFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 30) mainFrame.BorderSizePixel = 0 mainFrame.Active = true mainFrame.Draggable = true mainFrame.Parent = screenGui local corner = Instance.new("UICorner") corner.CornerRadius = UDim.new(0, 8) corner.Parent = mainFrame local title = Instance.new("TextLabel") title.Name = "Title" title.Size = UDim2.new(1, 0, 0, 40) title.BackgroundColor3 = Color3.fromRGB(20, 20, 20) title.Text = "autodonate simple script" title.TextColor3 = Color3.fromRGB(255, 255, 255) title.TextScaled = true title.Font = Enum.Font.GothamBold title.Parent = mainFrame local titleCorner = Instance.new("UICorner") titleCorner.CornerRadius = UDim.new(0, 8) titleCorner.Parent = title local textBox = Instance.new("TextBox") textBox.Size = UDim2.new(0.9, 0, 0, 35) textBox.Position = UDim2.new(0.05, 0, 0.45, 0) textBox.PlaceholderText = "whatever you put here will be the name your donating - dont play with ts" textBox.Text = "" textBox.BackgroundColor3 = Color3.fromRGB(45, 45, 45) textBox.TextColor3 = Color3.fromRGB(255, 255, 255) textBox.TextScaled = true textBox.Font = Enum.Font.Gotham textBox.Parent = mainFrame local tbCorner = Instance.new("UICorner") tbCorner.CornerRadius = UDim.new(0, 6) tbCorner.Parent = textBox local toggle = Instance.new("TextButton") toggle.Size = UDim2.new(0.9, 0, 0, 35) toggle.Position = UDim2.new(0.05, 0, 0.75, 0) toggle.BackgroundColor3 = Color3.fromRGB(170, 0, 0) toggle.Text = "off" toggle.TextColor3 = Color3.fromRGB(255, 255, 255) toggle.TextScaled = true toggle.Font = Enum.Font.GothamBold toggle.Parent = mainFrame local toggleCorner = Instance.new("UICorner") toggleCorner.CornerRadius = UDim.new(0, 6) toggleCorner.Parent = toggle local isOn = false local running = false local function getPlayerTime() local leaderstats = player:FindFirstChild("leaderstats") if leaderstats then local timeValue = leaderstats:FindFirstChild("Time") or leaderstats:FindFirstChild("time") if timeValue then return tostring(timeValue.Value) end end return "0" end local function cleanText(text) return text:gsub("_", ".") end local function sendMessage(message) local TextChatService = game:GetService("TextChatService") local textChannels = TextChatService:WaitForChild("TextChannels") local generalChannel = textChannels:WaitForChild("RBXGeneral") generalChannel:SendAsync(message) end local function startLoop() if running then return end running = true spawn(function() while isOn and running do local content = cleanText(textBox.Text) local pTime = getPlayerTime() local message = ";donate " .. content .. " " .. pTime sendMessage(message) wait(75) end end) end toggle.MouseButton1Click:Connect(function() isOn = not isOn if isOn then toggle.BackgroundColor3 = Color3.fromRGB(0, 170, 0) toggle.Text = "on" startLoop() else toggle.BackgroundColor3 = Color3.fromRGB(170, 0, 0) toggle.Text = "off" running = false end end)