Image / decal wont change on SurfaceGUI!

So here is the script :

script.Parent.TextBox:GetPropertyChangedSignal("Text"):Connect(function()
	script.Parent.ImageLabel.Image = "rbxassetid://"..script.Parent.TextBox.Text		
end)

I have been trying for ages and the ID works, it would be very nice if you could help me
( its a local script )

1 Like

So I tested your script and it didnt fire at all, maybe I think the script needs to be fully client sided since I adjusted the script and place it in starterGui and StarterPlayerScripts and it works

local ImagePart = workspace:WaitForChild("ImagePart")
ImagePart.SurfaceGui.TextBox:GetPropertyChangedSignal("Text"):Connect(function()
 ImagePart.SurfaceGui.ImageLabel.Image = "rbxassetid://"..ImagePart.SurfaceGui.TextBox.Text
end)
1 Like

Events only work under StarterGui, so put ur localscript inside StarterGui and edit from there

1 Like

But the local script is in the SurfaceGUI?

1 Like

Thanks! I’ll try putting it in “StarterPlayerScripts”

1 Like

Do you mind putting SurfaceGui on startergui (it works in that too) and adornee to part which is supposed to, and also putting script in that place.

After that try it

3 Likes

??? SurfaceGui is not StarterGui, read the words

1 Like

It works with StarterGUI however I do not need StarterGUI as It would break the system

1 Like

lol ok bye then? whats the point of creating a help topic if ur gonna ignore the solutions cause “it will break the system” fixing systems is part of development, wake up

I tried and it and it didn’t work so please change ur attuide as I am kind to u the whole time

Use a Script and change the RunContext property to Client:

Then you incorrectly tried it.

Thank you so much this has worked :smiley:

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.