Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Script working but the decal transparency doesnt change help?

the variable Strength is the decal.

local Wire = script.Parent
local Strength = script.Parent.unpowered.Transparency   

Strength = 0.0666 * Wire:GetAttribute("SignalStrength")

Wire:GetAttributeChangedSignal("SignalStrength"):Connect(function()
    Strength = 0.0666 * Wire:GetAttribute("SignalStrength")
end)

1 answer

As I've answered in your previous question, you're storing the transparency value in the Strength variable, and you only update that variable. What you should be doing is updating the transparency directly.

script.Parent.unpowered.Transparency = 0.0666 * Wire:GetAttribute("SignalStrength")

1 comment

0

At first i did not understand what this meant but know i know. Thank you for the help!

This discussion is preserved as it was. New answers, comments, and votes are closed.