In short, what I'm trying to accomplish is:
- Player presses the right arrow button
- It switches to the next image in the list
- Once at the last image it'll change back to the original image and repeats the process
Here's my current script. It'll switch to the first image but won't change to any other images after the first button press. Sorry if it's bad, this is my first time attempting to script a GUI.
script.Parent.MouseButton1Click:connect(function(player)
script.Parent.Parent.ImageLabel.Image = "rbxassetid://32360394"
end)
script.Parent.MouseButton1Click:connect(function(player)
script.Parent.Parent.ImageLabel.Image = "rbxassetid://443148891"
end)
script.Parent.MouseButton1Click:connect(function(player)
script.Parent.Parent.ImageLabel.Image = "rbxassetid://21824667"
end)
script.Parent.MouseButton1Click:connect(function(player)
script.Parent.Parent.ImageLabel.Image = "rbxassetid://443149001"
end)
And sorry if this isn't a properly formatted question, this is my first time using this site.
