Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How to make - if imagelabel.Image = rbx... then print("Hello") ?

How to make - if imagelabel.Image = rbx... then print("Hello") ( WITH LOOP ) ImageLabel = script.Parent -Thank u and best regards -PPJASK

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:

Conditions

More Help On Conditions

RunService

3 comments

0

this is with loop ?

0

Yes.

0

ok thank you

This discussion is preserved as it was. New answers, comments, and votes are closed.