So I have this script that is supposed to change decals depending on a value, any help? I have no idea why this wouldn't work but it doesn't. If you could help me it would help.

script.Parent.Equipped:Connect(function()
if script.Parent.MoneyValue.Value == 1 then
script.Parent.Handle.Decal1.Texture = "http://www.roblox.com/asset/?id=7994761"
script.Parent.Handle.Decal.Texture = "http://www.roblox.com/asset/?id=7994777"
elseif script.Parent.MoneyValue.Value == 2 then
script.Parent.Handle.Decal1.Texture = "http://www.roblox.com/asset/?id=12424991"
script.Parent.Handle.Decal.Texture = "http://www.roblox.com/asset/?id=12425000"
end
end)

3 comments

0

what I'm i looking at here?

0

Script.

0

I think that the Decal changes so quickly that you can't see the image. Try putting wait() between image changes.