Hi, So i'm writing this script that changes the decal texture asset ID of a part called "Screen". I've made loads of different stringvalues (one, two, three) which each have their own asset ID link (eg. http://www.roblox.com/asset/?id=238110849) i'm quite sure the links are ok. The hierarchy is:
Model, one, two, three, four, five, six, seven, eight, Part (ClickDetector, Script), Sign (PointLight, Decal)
Here's the script:
isOn = 0
local a=script.Parent.Parent.one.Value
local b=script.Parent.Parent.two.Value
local c=script.Parent.Parent.three.Value
local d=script.Parent.Parent.four.Value
local e=script.Parent.Parent.five.Value
local f=script.Parent.Parent.six.Value
local g=script.Parent.Parent.seven.Value
local h=script.Parent.Parent.eight.Value
local sign=script.Parent.Parent.Sign.Decal.Texture
function three()
do sign=""..a
isOn=2
end
end
function four()
sign=""..b
isOn=3
end
function five()
sign=""..c
isOn=4
end
function six()
sign=""..d
isOn=5
end
function seven()
sign=""..e
isOn=6
end
function eight()
sign=""..f
isOn=7
end
function two()
sign=""..g
isOn=1
end
function nine()
sign=""..h
isOn=0
end
function onClicked()
if isOn == 0 then two() elseif isOn==1 then three() elseif isOn==2 then four() elseif isOn==3 then five() elseif isOn==4 then six() elseif isOn==5 then seven() elseif isOn==6 then eight() else nine() end
end
script.Parent.ClickDetector.MouseClick:connect(onClicked)
nine()
I know it's unnecessarily long but I made the original a while ago and just edited that.

1 comment
There's nothing in the output/script analysis...