Pls help images doesnt load

i have issue


the image didnt show when I changed the script to this :

local TextBox = script.Parent.Input
local Detecter = script.Parent.TextLabel

script.Parent.TextButton.MouseButton1Click:Connect(function()
	if tonumber(TextBox.Text) then
		local text = "rbxassetid://"..tostring(TextBox.Text)
		script.Parent.Parent.Parent.Parent.Image = text
		print("is number")
		Detecter.TextColor3 = Color3.new(0.141176, 1, 0.00784314)
		Detecter.Text = "Done!"
		wait(1)
		Detecter.TextColor3 = Color3.new(1, 1, 1)
		Detecter.Text = "Use images pls!"
		script.Parent.Visible = false
	else
		print("is letter")
		Detecter.TextColor3 = Color3.new(1, 0, 0.0156863)
		Detecter.Text = "Not a number!"
		wait(1)
		Detecter.TextColor3 = Color3.new(1, 1, 1)
		Detecter.Text = "Use images pls!"
	end
end)

is their any errors in the output?

1 Like

lemme check…
no just prints out is number when I click done and the background is grey

really i checked there isnt single error.

is the image visible? chaarrrr

1 Like

? yes sure it is BUT il show u a video wait


now u get it? its a bug or im missing a code? its local script so uhmm

and if i paste the id into the imagelabel it doesn’t show there either so pls tell me why it ain’t working maybe http://www.roblox.com/asset/?id=?? ok it still broken pls help me man anyone else who can???

it just worked there? What is the problem?

1 Like

yeah but some user doesnt know how and i want it to work without the other image

like i dont wanne its not working for every image :sweat_smile:

Well that’s just normal unfortunately

yeah what then coz its still possible /:

i want to use the image asset id not decal id

I figured it out. You need to use the Image ID, not the Decal ID. To get the Image ID, you need to :LoadAsset the decal on the server.

  • On the client, invoke some sort of RemoteFunction
  • On the server, handle the RemoteFunction invoke by game:GetService("InsertService"):LoadAsset(assetId) (wrap this in a pcall) and get the Decal.Texture (make sure Decal child exists, of course)
1 Like

il try to figure it out soonly! if I can

1 Like

well i dont really understand half of the questions :sweat_smile:

local TextBox = script.Parent.Input
local Detecter = script.Parent.TextLabel
local assetId = script.Parent.Parent.Parent.Parent
local replicatedStorage = game:GetService("ReplicatedStorage")

script.Parent.TextButton.MouseButton1Click:Connect(function()
	if tonumber(TextBox.Text) then
		local text = "rbxassetid://"..tostring(TextBox.Text)
		script.Parent.Parent.Parent.Parent.Image = text
		game:GetService("InsertService"):LoadAsset(assetId)
		print("is number")
		Detecter.TextColor3 = Color3.new(0.141176, 1, 0.00784314)
		Detecter.Text = "Done!"
		wait(1)
		Detecter.TextColor3 = Color3.new(1, 1, 1)
		Detecter.Text = "Use images pls!"
		script.Parent.Visible = false
	else
		print("is letter")
		Detecter.TextColor3 = Color3.new(1, 0, 0.0156863)
		Detecter.Text = "Not a number!"
		wait(1)
		Detecter.TextColor3 = Color3.new(1, 1, 1)
		Detecter.Text = "Use images pls!"
	end
end)

really I suck
image

local TextBox = script.Parent.Input
local Detecter = script.Parent.TextLabel
local assetId = script.Parent.Parent.Parent.Parent
local replicatedStorage = game:GetService("ReplicatedStorage")
local event = replicatedStorage.RemoteFunction
local seed

script.Parent.TextButton.MouseButton1Click:Connect(function()
	if tonumber(TextBox.Text) then
		local text = "rbxassetid://"..tostring(TextBox.Text)
		script.Parent.Parent.Parent.Parent.Image = text
		event:FireServer(seed)
		print("is number")
		Detecter.TextColor3 = Color3.new(0.141176, 1, 0.00784314)
		Detecter.Text = "Done!"
		wait(1)
		Detecter.TextColor3 = Color3.new(1, 1, 1)
		Detecter.Text = "Use images pls!"
		script.Parent.Visible = false
	else
		print("is letter")
		Detecter.TextColor3 = Color3.new(1, 0, 0.0156863)
		Detecter.Text = "Not a number!"
		wait(1)
		Detecter.TextColor3 = Color3.new(1, 1, 1)
		Detecter.Text = "Use images pls!"
	end
end)

something like this?

Almost, you need a RemoteFunction (uses :InvokeServer)
Seems like you aren’t very much familiar with that, would you like me to just send you the code on Discord?

1 Like