ImageButton
ImageButton : GuiButton
Overview
Properties
HoverImage
string
HoverImage is the content ID of the image to display when the user's cursor is hovering over the ImageButton.
Code Samples
local ScreenGui = script.Parent
local ImageButton = ScreenGui:WaitForChild("ImageButton")
ImageButton.HoverImage = "ovdrassetid://1234"HoverImageContent
Content
Currently not supported.
Code Samples
Image
string
The content id of the image to display
Code Samples
local ScreenGui = script.Parent
local ImageButton = ScreenGui:WaitForChild("ImageButton")
ImageButton.Image = "ovdrassetid://1234"ImageColor3
Color3
ImageColor3 adjusts the color tint of the displayed image using a Color3 value.
Code Samples
local ScreenGui = script.Parent
local ImageButton = ScreenGui:WaitForChild("ImageButton")
ImageButton.ImageColor3 = Color3.fromRGB(255, 0, 0)ImageContent
Content
Currently not supported.
Code Samples
ImageTransparency
number
ImageTransparency controls the transparency level of the displayed image, ranging from 0 to 1.
Code Samples
local ScreenGui = script.Parent
local ImageButton = ScreenGui:WaitForChild("ImageButton")
ImageButton.ImageTransparency = 0.5PressImage
string
PressImage defines the content ID of the image to display when the ImageButton is pressed or clicked.
Code Samples
local ScreenGui = script.Parent
local ImageButton = ScreenGui:WaitForChild("ImageButton")
ImageButton.PressImage = "ovdrassetid://1234"PressImageContent
Content
Currently not supported.
Code Samples
Methods
Events
See also
GUILast updated