ok so title is confusing. How would I find the user id of a player that clicked a gui button?
function Click(player)
print("Terminal Works")
if player.UserId == 293872889 then
script.Parent.Parent.Parent.Access:Play()
wait(1)
script.Parent.Parent.Parent.Options.Visible = true
script.Parent.Parent.Parent.LoginFrame.Visible = false
else
print("User failed to access a terminal.")
script.Parent.Parent.Parent.Denied:Play()
end
end
script.Parent.MouseButton1Click:connect(Click)

1 comment
If you have any problems let me know.