Hello, Im currently trying to make a Weaponshop ui but I don’t know how to script it. I already tried something but that didn’t work.
That are the scripts I tried to use:
Here is what my ScreenGUI looks like:
Does someone know how I would fix it? I want to make it so, that if you click on the Unlselected Selected Image Button that the Selected Image Button will become visible and the other not visible. And for the other Weapon Frames that are not selected, it will show the Unselected Image. I don’t know if that’s understandable.
Script 1:
script.Parent.MouseButton1Click:Connect(function()
script.Parent.G36Selected.ImageTransparency = 0
script.Parent.G36UnselectedImageButton.ImageTransparency = 1
script.Parent.Parent.MP4Selected.ImageTransparency = 1
script.Parent.Parent.MP4Selected.MP4SelectedViewportFrame.ImageTransparency = 1
end)
Script 2:
script.Parent.MouseButton1Click:Connect(function()
script.Parent.MP4Selected.ImageTransparency = 0
script.Parent.MP4Selected.MP4SelectedViewportFrame.ImageTransparency = 0
script.Parent.MP4Selected.MP4UnselectedImageButton.ImageTransparency = 1
script.Parent.MP4Selected.MP4UnselectedViewportFrame.ImageTransparency = 1
end)