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

GUI that shows up on a specific account's screen that when clicked, it triggers an event? [closed]

Asked by 4 years ago

Does anyone know if I can make a screen GUI that shows up on a specific account's screen that when clicked, it triggers an event?

Closed as Not Constructive by Ziffixture and RayCurse

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?

1 answer

Log in to vote
0
Answered by 4 years ago

ok so lets assume youve made the gui already (make sure its invisible)

if game.Players.LocalPlayer == "playernamehere" then
    gui.Visible = true
end

and for the part where the event happens when its clicked, i dont really understand what you mean by event, so ill assume its a remote event

button.MouseButton1Down:Connect(function()
    game.ReplicatedStorage.RemoteEvent:FireServer()
end)

hope it helps, replace the event and the player name, gui etc with the actual gui name / path (eg. script.Parent.Gui)

Ad