How would I make team markers that only appears if you are in the same team?
1 Like
Make use of the client.
The nifty thing about the client is if you do something like create a part from the client side, it would only appear for that particular client.
So, in a local script on the client, you could have:
local Players = game:GetService("Players")
local player = Players.LocalPlayer
for _, teammate in pairs(Players:GetPlayers()) do
if teammate.Team == player.Team and teammate ~= player then
-- create the marker.
-- i would create billboard GUIs and adorn them to each player
end
end
2 Likes
i’ve noticed issues in not handling team changes properly in my team markers… is there a reliable way in a local script to detect when other players characters are loaded, and each time they are loaded?