I need this for a mute button and i cant seem to find out the error (No Output Errors) . This is the code:
1 | script.Parent.MouseButton 1 Click:connect( function () |
2 | --My Music Mute Script Here-- |
3 | script.Parent.Image = 0 --Image Goes ID here-- |
4 | end ) |
Hi Christopher_magical!
You need to add rbxassetid://
to the Asset ID (The Asset ID are the numbers). I also recommend using :Connect()
instead of :connect()
Try this:
1 | local id = 0 --put your id there |
2 | script.Parent.MouseButton 1 Click:Connect( function () |
3 | script.Parent.Image = "rbxassetid://" ..id |
4 | end ) |
Hope I helped, LennyPlayzYT