Hello, my name is chronofantastic and i'd like to ask how would i make it so a player sees a gui or textlabel within the gui? Here is my short code, please dont be rude to me or unkind.
local gui = game.Players.LocalPlayer.PlayerGui gui = game:GetService("Players").LocalPlayer.PlayerGui gui.Info1.SecA.Visible = true
I know it isnt much, but please dont be mean to me as this is my first question asked.
Hello! Thanks for joining the community.
To do what you are asking, simply use a Hint
, which is small text box GUI that appears at the top of the screen:
function showMessage(player, text, duration) game.Players:WaitForChild(player) local hint = Instance.new("Hint") game.Players[player]:WaitForChild("PlayerGui") hint.Parent = game.Players[player].PlayerGui hint.Text = text wait(duration) hint:Destroy() end
Usage:
showMessage("ChronoFantastic", "Congrats on your first question!", 5)