I need this for a mute button and i cant seem to find out the error (No Output Errors) . This is the code:
script.Parent.MouseButton1Click:connect(function()
--My Music Mute Script Here--
script.Parent.Image = 0 --Image Goes ID here--
end)
I need this for a mute button and i cant seem to find out the error (No Output Errors) . This is the code:
script.Parent.MouseButton1Click:connect(function()
--My Music Mute Script Here--
script.Parent.Image = 0 --Image Goes ID here--
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:
local id = 0 --put your id there
script.Parent.MouseButton1Click:Connect(function()
script.Parent.Image = "rbxassetid://"..id
end)
Hope I helped, LennyPlayzYT
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
Thanks Dude It Works!