Assets won't load, scripting error?

Made a script that detects if a player is using touchscreen or pc and changes the asset
(it’s like a “e to interact” thing, except if touchscreen is detected it changes to “click to interact”)
the assets won’t load when I test the game, and there are no errors in output?

i’m a noobish scripter, so I might miss any clear mistakes - sorry abt that

local Gui = script.Parent
local PromptLabel = Gui.PromptLabel

--// DEVICE DETECTION

if UIS.TouchEnabled and not UIS.KeyboardEnabled and not UIS.MouseEnabled
   and not UIS.GamepadEnabled and not GuiService:IsTenFootInterface() then

	PromptLabel.Image = "rbxassetid://5514367825" --// tablet or phone
	
elseif UIS.KeyboardEnabled and UIS.MouseEnabled and not UIS.GamepadEnabled and not GuiService:IsTenFootInterface() then
	
	PromptLabel.Image = "rbxassetid://5514367357" --// pc

end

Hi,
The reason they’re not loading is because those id’s return an error. I’ve just put the id in studio so i could get the links for both assets for you:
Use:

Hope it helps

1 Like

Thanks, helped me a lot! I got confused because I was sure I didn’t make a mistake in the script itself lol. Thanks again :slight_smile: