Hey all,
In the place I’m building there are two teams and vehicles. If you press the key to cloak your vehicle, the parts should all disappear for the other team, whereas a billboard gui with the text “cloaked” will appear over your vehicle for players on your team.
The transparency part is not working as expected.
Expectation:
Reality:
Code:
else if team == blue then
for _, bruh in pairs(teams['Blue']:GetPlayers()) do
engine.Transparency = 1
local children = bodykit:GetChildren()
for bruh, children in pairs(children) do
children.Transparency = 0.1
wait(0.1)
children.Transparency = 0.2
wait(0.1)
children.Transparency = 0.3
wait(0.1)
children.Transparency = 0.4
wait(0.1)
children.Transparency = 0.5
wait(0.1)
children.Transparency = 0.6
wait(0.1)
children.Transparency = 0.7
wait(0.1)
children.Transparency = 0.8
wait(0.1)
children.Transparency = 0.9
wait(0.1)
children.Transparency = 1
wait(5)
children.Transparency = 0
end
engine.Transparency = 0
end