-- services local Players = game:GetService("Players") local ReplicatedStorage = game:GetService("ReplicatedStorage") local player = Players.LocalPlayer -- remote local respawnRemote = ReplicatedStorage :WaitForChild("Events") :WaitForChild("RoundEvents") :WaitForChild("RespawnOffer") -- gui local gui = Instance.new("ScreenGui") gui.Name = "RespawnGui" gui.ResetOnSpawn = false gui.Parent = player:WaitForChild("PlayerGui") local button = Instance.new("TextButton") button.Size = UDim2.new(0, 200, 0, 60) button.Position = UDim2.new(0.5, -100, 0.8, 0) button.Text = "RESPAWN" button.TextScaled = true button.BackgroundColor3 = Color3.fromRGB(200, 50, 50) button.TextColor3 = Color3.fromRGB(255, 255, 255) button.Parent = gui -- click logic button.MouseButton1Click:Connect(function() respawnRemote:FireServer(true) end)