roblox new gui code example
Example 1: functions click on gui roblox
function leftClick()
print("Left mouse click")
end
function rightClick()
print("Right mouse click")
end
script.Parent.MouseButton1Click:Connect(leftClick)
script.Parent.MouseButton2Click:Connect(rightClick)
Example 2: how to make gui for just one player roblox
game:GetService("Players").LocalPlayer.PlayerGui.Map.ImageLabel.Visible = true