Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

rbxassetid doesen't let me use decal what do I do to fix?

Asked by 2 years ago

I tried to make a tv when u press the remote it switches channels right? Alr so I used mostly already uploaded decals. But when I used the one I uploaded myself it didnt work no matter how much I tried it was just a blank screen. Heres the code I used


local screen = script.Parent.Parent.Screen local light = screen.SurfaceLight local channel = screen.Channel local img = screen.Decal channel.Changed:Connect(function() if channel.Value == 0 then img.Texture = "rbxassetid://25067669" elseif channel.Value == 1 then img.Texture = "rbxassetid://8392666547" elseif channel.Value == 2 then img.Texture = "rbxassetid://8392667469" elseif channel.Value == 3 then img.Texture = "rbxassetid://8392668539" elseif channel.Value == 4 then img.Texture = "rbxassetid://8392670413" elseif channel.Value == 5 then img.Texture = "http://www.roblox.com/asset/?id=6919659360" elseif channel.Value == 6 then img.Texture = "http://www.roblox.com/asset/?id=223017962" elseif channel.Value == 7 then img.Texture = "rbxassetid://1206367650" end end)

The ones that were made by me and didn't work are : 8392666547 8392667469 8392668539 8392670413

0
what are the errors that show up in the output? luluziluplayzROBLOX 61 — 2y
0
literaly no errors just doesen't work tonis556785 -5 — 2y

1 answer

Log in to vote
0
Answered by
pwx 1581 Moderation Voter
2 years ago

It seems you are using the asset ID rather than the texture ID.

Here are the IDs you are after:

8392666518, 8392667458, 8392668539, 8392668521.

For future reference, the best way to get the texture ID is to place a Decal into your studio and put the ID into the texture property, the decal will automatically convert your asset ID into a texture ID.

Ad

Answer this question