Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 6 years ago

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?

Closed as Not Constructive by abnotaddable, Thundermaker300, and hiimgoodpack

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

2 answers

Log in to vote
0
Answered by 6 years ago

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

Ad
Log in to vote
0
Answered by 6 years ago

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)