RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"make a round system, with gui on top of the screen"
-- server script (ServerScriptService) local roundNumber = 1 local roundDuration = 60 while true do game.ReplicatedStorage.RoundNumber.Value = roundNumber wait(roundDuration) roundNumber = roundNumber + 1 end -- local script (inside a ScreenGui) local replicatedStorage = game:GetService("ReplicatedStorage") local playerGui = game.Players.LocalPlayer.PlayerGui local roundLabel = Instance.new("TextLabel") roundLabel.Parent = playerGui.ScreenGui roundLabel.Size = UDim2.new(0, 200, 0, 50) roundLabel.Position = UDim2.new(0.5, -100, 0, 10) roundLabel.BackgroundTransparency = 1 roundLabel.Font = Enum.Font.SourceSans roundLabel.TextSize = 24 roundLabel.TextColor3 = Color3.new(1, 1, 1) roundLabel.TextStrokeTransparency = 0 local function updateRound() roundLabel.Text = "Round: " .. tostring(replicatedStorage.RoundNumber.Value) end replicatedStorage.RoundNumber:GetPropertyChangedSignal("Value"):Connect(updateRound) updateRound()