Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How to make : Image change by button click ?

Hello, I have a question about the script How to - How to make Image change by button click script ?

Thank you for all the answers

  • Thanks and best regards -PPJASK

1 answer

✓ Accepted answer

Hello

To make it work, insert a ScreenGUI in StarterGUI, Then insert an ImageLabel in StarterGUI

Heres a script for what you needed for:

local button = script.Parent

local tagret = game.StarterGUI.ScreenGUI.ImageLabel


button.MouseButton1Click:Connect(function()
       target.Image = "rbxassetid://5015860984"
end)

Hope it help's!

2 comments

0

when you defined tagret, it was spelt incorrectly in line 7.

0

Yeah, I didn't notice.

This discussion is preserved as it was. New answers, comments, and votes are closed.