so i have this script that makes players have a red outlines on a player, but i wanted to make the Main Player’s Red Outlines not Visible
local players = game:GetService("Players")
players.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(function(char)
local hrp = char:WaitForChild("Torso")
local extraobj = Instance.new("Part")
extraobj.Parent = char
extraobj.Name = "1OBJ"
extraobj.Anchored = false
extraobj.CanCollide = false
extraobj.Transparency = 1
extraobj.BrickColor = BrickColor.new("Really red")
extraobj.Size = Vector3.new(2.1, 2.1, 1.1)
extraobj.Material = "ForceField"
extraobj.Position = hrp.Position + Vector3.new(0,0,0)
local SelectionBox = Instance.new("SelectionBox")
SelectionBox.Parent = extraobj
SelectionBox.Adornee = extraobj
SelectionBox.Color3 = Color3.fromRGB(255, 0, 0)
SelectionBox.LineThickness = 0.1
local weld = Instance.new("WeldConstraint")
weld.Parent = extraobj
weld.Part0 = weld.Parent
weld.Part1 = hrp
end)
end)
players.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(function(char)
local hrp = char:WaitForChild("Left Leg")
local extraobj = Instance.new("Part")
extraobj.Parent = char
extraobj.Name = "2OBJ"
extraobj.Anchored = false
extraobj.CanCollide = false
extraobj.Transparency = 1
extraobj.BrickColor = BrickColor.new("Really red")
extraobj.Size = Vector3.new(1.1, 2.1, 1.1)
extraobj.Material = "ForceField"
extraobj.Position = hrp.Position + Vector3.new(0,0,0)
local SelectionBox = Instance.new("SelectionBox")
SelectionBox.Parent = extraobj
SelectionBox.Adornee = extraobj
SelectionBox.Color3 = Color3.fromRGB(255, 0, 0)
SelectionBox.LineThickness = 0.1
local weld = Instance.new("WeldConstraint")
weld.Parent = extraobj
weld.Part0 = weld.Parent
weld.Part1 = hrp
end)
end)
players.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(function(char)
local hrp = char:WaitForChild("Right Leg")
local extraobj = Instance.new("Part")
extraobj.Parent = char
extraobj.Name = "3OBJ"
extraobj.Anchored = false
extraobj.CanCollide = false
extraobj.Transparency = 1
extraobj.BrickColor = BrickColor.new("Really red")
extraobj.Size = Vector3.new(1.1, 2.1, 1.1)
extraobj.Material = "ForceField"
extraobj.Position = hrp.Position + Vector3.new(0,0,0)
local SelectionBox = Instance.new("SelectionBox")
SelectionBox.Parent = extraobj
SelectionBox.Adornee = extraobj
SelectionBox.Color3 = Color3.fromRGB(255, 0, 0)
SelectionBox.LineThickness = 0.1
local weld = Instance.new("WeldConstraint")
weld.Parent = extraobj
weld.Part0 = weld.Parent
weld.Part1 = hrp
end)
end)
players.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(function(char)
local hrp = char:WaitForChild("Left Arm")
local extraobj = Instance.new("Part")
extraobj.Parent = char
extraobj.Name = "4OBJ"
extraobj.Anchored = false
extraobj.CanCollide = false
extraobj.Transparency = 1
extraobj.BrickColor = BrickColor.new("Really red")
extraobj.Size = Vector3.new(1.1, 2.1, 1.1)
extraobj.Material = "ForceField"
extraobj.Position = hrp.Position + Vector3.new(0,0,0)
local SelectionBox = Instance.new("SelectionBox")
SelectionBox.Parent = extraobj
SelectionBox.Adornee = extraobj
SelectionBox.Color3 = Color3.fromRGB(255, 0, 0)
SelectionBox.LineThickness = 0.1
local weld = Instance.new("WeldConstraint")
weld.Parent = extraobj
weld.Part0 = weld.Parent
weld.Part1 = hrp
end)
end)
players.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(function(char)
local hrp = char:WaitForChild("Right Arm")
local extraobj = Instance.new("Part")
extraobj.Parent = char
extraobj.Name = "5OBJ"
extraobj.Anchored = false
extraobj.CanCollide = false
extraobj.Transparency = 1
extraobj.BrickColor = BrickColor.new("Really red")
extraobj.Size = Vector3.new(1.1, 2.1, 1.1)
extraobj.Material = "ForceField"
extraobj.Position = hrp.Position + Vector3.new(0,0,0)
local SelectionBox = Instance.new("SelectionBox")
SelectionBox.Parent = extraobj
SelectionBox.Adornee = extraobj
SelectionBox.Color3 = Color3.fromRGB(255, 0, 0)
SelectionBox.LineThickness = 0.1
local weld = Instance.new("WeldConstraint")
weld.Parent = extraobj
weld.Part0 = weld.Parent
weld.Part1 = hrp
end)
end)