Screen = script.Parent.Parent.Screen Image = {"https://web.roblox.com/library/2945092805/Images-hi"} function onClicked() script.Parent.ClickDetector.MouseClick:Connect(onClicked) Screen.Decal.Texture = Image [math.random(1, #Image)] end script.Parent.Touched:connect(onTouched) script.Parent.ClickDetector.MouseClick:Connect(onClicked)
The output was putting out errors and I did not know what to do.
You never want to use an actual link, but I will revise this
local screen = script.Parent.Parent.Screen local imageID = {2945092805, 000, 000} -- other ID's script.Parent.ClickDetector.MouseClick:Connect(function() -- click event Screen.Decal.Texture = "rbxassetid://"..imageID[math.random(1, #imageID)] -- choosing a random id from your array end)