Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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

2 comments

0

what are the errors that show up in the output?

0

literaly no errors just doesen't work

1 answer

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.

This discussion is preserved as it was. New answers, comments, and votes are closed.