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?
COMMUNITY QUESTION
GUI that shows up on a specific account's screen that when clicked, it triggers an event?
1 answer
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)
This discussion is preserved as it was. New answers, comments, and votes are closed.
