So I am trying to make imagebutton have an image that I put in StringValue but I doesn't work, this is the script.
local ReplicatedStorage = game:GetService("ReplicatedStorage"):WaitForChild("ReplicatedStorage_Objects") local _Image = ReplicatedStorage:WaitForChild("Units"):WaitForChild("Image") script.Parent.Image(_Image)
This is link for Roblox image http://www.roblox.com/asset/?id=237951922
Hello, MatoProF! You don't need all those variables. Instead, just set the ImageButton's image to rbxassetid://
followed by the AssetId. Also, don't start a variable using "_", "=", "+", "-", a number, etc. as it will error.Try this:
script.Parent.Image = "rbxassetid://237951922"
Please upvote and accept this answer if it helped.