local Players = game:GetService("Players") local ReplicatedStorage = game:GetService("ReplicatedStorage") local player = Players.LocalPlayer local toggleReady = ReplicatedStorage:WaitForChild("ToggleReady") local screen = Instance.new("ScreenGui") screen.ResetOnSpawn = false screen.Parent = player:WaitForChild("PlayerGui") local button = Instance.new("TextButton") button.AnchorPoint = Vector2.new(0.5, 0.5) button.Position = UDim2.fromScale(0.5, 0.8) button.Size = UDim2.fromOffset(220, 56) button.Parent = screen local function render() local ready = player:GetAttribute("Ready") == true button.Text = ready and "Ready ✓" or "Ready up" button.BackgroundColor3 = ready and Color3.fromRGB(70, 190, 110) or Color3.fromRGB(70, 90, 120) end button.MouseButton1Click:Connect(function() toggleReady:FireServer() end) player:GetAttributeChangedSignal("Ready"):Connect(render) render()