Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

My script is supposed to set a value to an image url?

Asked by
NSMascot 113
5 years ago
local event = game.ReplicatedStorage.Events.Tattoo

function leftClick(mouse)
event:FireServer()
script.Parent.Parent.WhichTattoo.Value = script.Parent.Image
end
script.Parent.MouseButton1Click:connect(leftClick)

so basically when you left click the button it fires an event (not important to my question) & sets a value to an images url (line 5), when i play and click the button, the value stays blank, does anyone know why?

1
That's because line 5 mentions the image object itself, not the image id (Texture or whatever.) Unity_456 47 — 5y
0
thankyou NSMascot 113 — 5y

Answer this question