Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to make a dialog box say the player's name?

I'm trying to get a dialog box to say the player's name who clicked on it. How do I go about doing that?

2 answers

well you put a dialog into a model and put an dialog answer in dialog and set the answer to the name of the character

These 2 scripts can be supported for FE and non-FE games.

-- Script in ServerScriptService
local RE = Instance.new("RemoteEvent",game.ReplicatedStorage)
RE.OnClientEvent:connect(function(Plr)
local button = workspace.thing -- change this workspace.thing into the place where you placed the box
button.Text = Plr.Name
end)
-- Local Script
local button = workspace.thing -- change this workspace.thing into the place where you placed the box
button.MouseButton1Click:connect(function()
local RE = game.ReplicatedStorage.WaitForChild("RemoteEvent")
RE:FireServer()
print("Fired the event")
end)

This discussion is preserved as it was. New answers, comments, and votes are closed.