Please help! This script isn't changing the decal of my image ;/
Thanks!
Btw, there is no error message
screen = script.Parent.Decal while true do wait() if game.Workspace.A.Zig.Value == false then screen.Texture = "http://www.roblox.com/asset/?id=162925348" else if game.Workspace.A.Zig.Value == true then screen.Texture = "http://www.roblox.com/asset/?id=162925339" end end end
**I think i know how to fix this! Just remove line 8, like so: **
screen = script.Parent.Decal while true do wait() if game.Workspace.A.Zig.Value == false then screen.Texture = "http://www.roblox.com/asset/?id=162925348" else if game.Workspace.A.Zig.Value == true then screen.Texture = "http://www.roblox.com/asset/?id=162925339" end end end
on line 7 change else into elseif (one word) and remove the if on line 8.
if game.Workspace.A.Zig.Vlue == false then screen.Texture = "" elseif game.Workspace.A.Zig.Value == true then script.Texture = "" end
elseif makes options more flexible, than just doing:
if this then that end if not this then not_that end
its better to do:
if this then that elseif not_this then not_that end
It is probably an error with the values, I tried the images with my own bricks and they worked.