Local Script Not Changing Texture ID

Hello I was working on a gallery of artists(one of my projects) but when I added an art submit GUI with a local script inside a button and when I clicked on the submit button it successfully set the texture but the texture wasn’t showing it was blank but the texture ID was the same what is going on?? (sorry for bad grammar)

Here is the local script :

 function click()
	local number = tonumber(script.Parent.Parent.TextBox.Text)
	local completed = "rbxassetid://"..number
	script.Parent.Parent.Value.Value.PaintPart.Decal.Texture = completed
end

script.Parent.MouseButton1Up:Connect(click)
script.Parent.TouchTap:Connect(click)

There are a few reasons that could be causing this:

First, have you tried doing it in a script instead?

Second, have you made sure the texture isnt corrupted, or perhaps put in the wrong number cause the text has interfered?

Third, perhaps your internet connection is slow so its going to take a little while for it to load.

As a side note, you do not need to use tonumber, since you are just putting it back to a string again.
So i recommend removing tonumber.

Q: First, have you tried doing it in a script instead?
A: Yes right now I did

Q: Second, have you made sure the texture isn’t corrupted, or perhaps put in the wrong number cause the text has interfered?
A: Its not corrupted and i saw when i just put the number the ID changes for some reason so i tried to use insert server and now it give me HTTP 403 (Forbidden) error

Q: Third, perhaps your internet connection is slow so its going to take a little while for it to load.
A: It Loaded fast when i just put the idea in explorer

Ok, perhaps try reuploading the images. I have a feeling roblox may of blocked them, so they only load in certain areas.

Thats not my decal when you go to image section of toolbox there is a decal called Clothe i tried that as a testing one

Now I tried to use insertservice and pcall and the error is nil

Right well that just means theres no error so

also i used if success then the model(inserted) parent should be replicatedstorage but there is nothing inside the replicatedstorage

Alright Alright I used another script inside the workspace with one of my own texture and it worked the script is

game:GetService("InsertService"):LoadAsset(6172724818).Parent = game.ReplicatedStorage

What is exactly going on???

Check the settings of the game, is it published?

1 Like

A: Published API enabled HTTP Enabled And Public

Also it sends the number to remote event and the variable is called completed i changed it to a random ID and it worked again WHAT???

1 Like

Have you tried it with a completely different asset, from someone else?

Firstly that Clothe Asset then with one of my own

I Fixed It!!!

I set the completed variable to a intvalue then loaded asset with int value value as a ID