Basically I have an intermission to my game and i, represents how many seconds are left.
I used a remote event to send that info to a local script, and the local script will make a gui say (“game starts in i seconds”). But I have no idea what to type to make the print say what the variable i holds and not just i.
Ik this is a pretty dumb thing to ask, but for the life of me I cannot find out how to do this anywhere.
local playerGui = game.Players.LocalPlayer.PlayerGui
RS.OnClientEvent:Connect(function(i: number) -- we need `i` as passed argument by the server || the ":number" is just a type syntax
playerGui.ScreenGui.Textlabel.Text = `Game will start in {i} second{(i > 1 and "s") or ""}`
end)