How to make - if imagelabel.Image = rbx... then print("Hello") ( WITH LOOP ) ImageLabel = script.Parent -Thank u and best regards -PPJASK
✓ ANSWER ACCEPTED
How to make - if imagelabel.Image = rbx... then print("Hello") ?
1 answer
✓ Accepted answer
I know you keep asking similar questions, this is once again really easy, try doing your own research to actually learn.
anyways:
local RunService = game:GetService("RunService").RenderStepped -- render step on client.
local ImageLabel = script.Parent -- gets the parent ( assuming its the image button or label. )
RunService:Connect(function()
game:GetService("RunService").Heartbeat:Wait()
if ImageLabel.Image == ("rbxassetid://ASSET") then
print("Image: " .. ImageLabel.Image:gsub("rbxassetid://", ""))
end
end)
If you need help, use these links:
This discussion is preserved as it was. New answers, comments, and votes are closed.

3 comments
this is with loop ?
Yes.
ok thank you