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?
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)
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?