So I currently have a local script who’s Parent is a tool that’s located in the player starterpack
How do I find the Local Player’s TeamColor with the local script?
I tried to find a Local Player’s TeamColor like this but it didn’t work.
local character = script.Parent.Parent.Parent
local player = game.Players:GetPlayerFromCharacter(character)
if player.TeamColor == "Really Red" then
Setting.ProjectileType = "RedTeam"
else
Setting.ProjectileType = "BlueTeam"
end
local tool = script.Parent
local character = tool.Parent
local player = game.Players:GetPlayerFromCharacter(character)
tool.Equipped:Connect(function()
if player.TeamColor == "Really Red" then
Setting.ProjectileType = "RedTeam"
else
Setting.ProjectileType = "BlueTeam"
end
end)