Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I find a Part Property change from a Local Script?

Asked by 8 years ago

So, I have this basic LocalScript located in the StarterGui. What I need it to do is constantly update itself, so when a bricks transparency changes to 0.1 in Workspace, it needs to see that and then run the code on Line 4.

local player = game.Players.LocalPlayer

if game.ServerStorage.StraightConveyer.Main.Conveyer.Transparency == 0.1 then
    player.StraightConveyerAmount.Value = (player.StraightConveyerAmount.Value + 1)
end

What should I add to keep checking for this change?

Answer this question