What do you want to achieve? I am making a horror game in which when a player dies there is a
static effect which is achieved by changing the image id every 0.1 seconds.
What is the issue?
local image = script.Parent.ImageLabel.Image
while true do
wait(0.1)
image = "http://www.roblox.com/asset/?id=10624008183"
wait(0.1)
image = "http://www.roblox.com/asset/?id=10624013425"
wait(0.1)
image = "http://www.roblox.com/asset/?id=10624017649"
end
It is a very simple script but for some reason i dose not work
right here you are setting the variable image to the image of the ImageLabel when the game starts.
you’d want to do
local image = script.Parent.ImageLabel
while true do
wait(0.1)
image.Image = "http://www.roblox.com/asset/?id=10624008183"
wait(0.1)
image.Image = "http://www.roblox.com/asset/?id=10624013425"
wait(0.1)
image.Image = "http://www.roblox.com/asset/?id=10624017649"
end
local image = script.Parent.ImageLabel
while true do
task.wait(0.1)
image.Image = "http://www.roblox.com/asset/?id=10624008171"
task.wait(0.1)
image.Image = "http://www.roblox.com/asset/?id=10624013410"
task.wait(0.1)
image.Image = "http://www.roblox.com/asset/?id=10624017629"
end
I changed the image IDs game compatible (I don’t really know if this is the right way to explain this) and it worked perfectly for me