Is there a way to change properties of multiple objects with Arrays?
Hey all, I'm tired of changing a property of multiple objects one by one, but when I tried to make an array to solve this it did not work. How could I have this so all of these could be changed with a table, I do not know where to begin.
01 | local player = game.Players.LocalPlayer |
05 | game.ReplicatedStorage.SeeThrough.OnClientEvent:Connect( function (seat) |
07 | if seat.Occupant ~ = nil then |
08 | seat.Parent.Parts.Part 1. Transparency = 0.5 |
09 | seat.Parent.Parts.Part 2. Transparency = 0.5 |
10 | seat.Parent.Parts.Part 3. Transparency = 0.5 |
11 | seat.Parent.Parts.Part 4. Transparency = 0.5 |
13 | seat.Parent.Parts.Part 1. Transparency = 0 |
14 | seat.Parent.Parts.Part 2. Transparency = 0 |
15 | seat.Parent.Parts.Part 3. Transparency = 0 |
16 | seat.Parent.Parts.Part 4. Transparency = 0 |