So I want to make the button change image, when I click on button… Only what it does, the image just disappears.
The code I was using is:
local button = script.Parent
local function leftClick()
script.Parent.Image = "http://www.roblox.com/asset/?id=6417985215"
end
button.MouseButton1Click:Connect(leftClick)
local button = script.Parent
local function leftClick()
script.Parent.Image = "rbxassetid://6417985215"
end
button.MouseButton1Click:Connect(leftClick)