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

How can I make it so that decals are visible to only one team?

Asked by 3 years ago

https://gyazo.com/09c3e5a9f3103944488dd11e3fd15553

The black on the clear parts are the decals. I want to make it so that the people on the "ingame" team can only see all of those decals, and the people in the "lobby" team to not see the black decals.

1 answer

Log in to vote
0
Answered by
kjljixx 42
3 years ago

Using a LocalScript somewhere where LocalScripts run, do something like:

while true do
    if game.players.LocalPlayer.Team == "lobby" then
        --insert code to make the decal's transparency 1
    elseif game.players.LocalPlayer.Team == "ingame" then
        --insert code to make the decal's transparency 0
    wait(0.1)
0
add a pcall and if it was succesfull then break from the loop, and restart it when the game starts so that it wont lag the game. or make it in a different thread 0hsa 193 — 3y
Ad

Answer this question