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
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
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!
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
when you defined tagret, it was spelt incorrectly in line 7.
Yeah, I didn't notice.