Please help! This script isn't changing the decal of my image ;/
Thanks!
Btw, there is no error message
01 | screen = script.Parent.Decal |
02 |
03 | while true do |
04 | wait() |
05 | if game.Workspace.A.Zig.Value = = false then |
06 | screen.Texture = "http://www.roblox.com/asset/?id=162925348" |
07 | else |
08 | if game.Workspace.A.Zig.Value = = true then |
09 | screen.Texture = "http://www.roblox.com/asset/?id=162925339" |
10 | end |
11 | end |
12 | end |
**I think i know how to fix this! Just remove line 8, like so: **
01 | screen = script.Parent.Decal |
02 |
03 | while true do |
04 | wait() |
05 | if game.Workspace.A.Zig.Value = = false then |
06 | screen.Texture = "http://www.roblox.com/asset/?id=162925348" |
07 | else |
08 | if game.Workspace.A.Zig.Value = = true then |
09 | screen.Texture = "http://www.roblox.com/asset/?id=162925339" |
10 | end |
11 | end |
12 | end |
on line 7 change else into elseif (one word) and remove the if on line 8.
1 | if game.Workspace.A.Zig.Vlue = = false then |
2 | screen.Texture = "" |
3 | elseif game.Workspace.A.Zig.Value = = true then |
4 | script.Texture = "" |
5 | 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.