I have tried to implement a feature in my game to where your torso, and leg colors will change colors to where they correspond with their team color. I've tried this before and it worked, however for some reason it won't now... I have a script in the Server Script Service, and here's my code.




game.Players.PlayerAdded:Connect(function(player)
	player.CharacterAdded:Connect(function(character)
		repeat wait() until player.Team ~= nil
		local team = player.Team
		
		local bodyColors = character:WaitForChild("Body Colors")
		bodyColors.TorsoColor = team.TeamColor
		bodyColors.LeftLegColor = team.TeamColor
		bodyColors.RightLegColor = team.TeamColor
		player:GetPropertyChangedSignal("Team"):Connect(function()
			bodyColors.TorsoColor = team.TeamColor
			bodyColors.LeftLegColor = team.TeamColor
			bodyColors.RightLegColor = team.TeamColor
		end)
	end)
end)



6 comments

0

does the game use R15

0

No

0

idk then :^))))

0

you could try actually setting the color of each limb instead of using Body Colors

0

Will it work with it being R15???

0

no, Body Colors only works with r6