How to make another Players Glow red?

hi so im making a fps game and im trying to add glowing red outlines on the players

image

is like this in the picture

2 Likes

If you want the outline to be seen from behind walls, you should take a look at SelectionBoxes. However be aware that it might look weird especially with R15 rigs because of how it behaves.
If you want a better outline but that cannot be seen from behind the walls (since it’s made of MeshParts), you can use CellShading. @HeavenlyRadiance made a model for it, it’s awesome. Works perfectly for me. Here’s the link to his topic: R15 and R6 Cel Shading.
You’ll just need to write some code to weld each cell shaded part to its corresponding BodyPart.

1 Like

thanks! but quick question, is it easier to use r6?

I wouldn’t say it’s easier, it depends on your preferences. But I believe R6 rigs fit more for CellShading because of them having a much smaller amount of parts than R15 rigs.

ah ok thanks for letting me know I’m working on R6 Anyway

1 Like
local players = game:GetService("Players")
local surfaceTable = {"Back", "Bottom", "Front", "Left", "Right", "Top"}

players.PlayerAdded:Connect(function(player)
	player.CharacterAdded:Connect(function(character)
		for i, v in pairs(character:GetChildren()) do
			if v:IsA("Part") or v:IsA("MeshPart") then
				for index, value in pairs(surfaceTable) do
					local surfaceSelection = Instance.new("SurfaceSelection")
					surfaceSelection.Parent = v
					surfaceSelection.Adornee = v
					surfaceSelection.Color3 = Color3.new(1, 0, 0)
					surfaceSelection.TargetSurface = value
				end
			end
		end
	end)
end)
1 Like