Hi,
Today I have a question, I was working on a Part outline I have a problem with the Accessory outline
The outline part is too fit to original accessory till everything is the green color
I want the outline to be perfect like outline player character,
Here is the script
local Scale, HeadScale = Vector3.new(-1.06, -1.06, -1.06), Vector3.new(-0.6, -1.33, -1.33);
local CelColor = Color3.fromRGB(0, 255, 0);
local NPC = game.Players.LocalPlayer.Character or game.Players.LocalPlayer.CharacterAdded:Wait();
function CreateShader(Base, Parent, Type)
local Part = Instance.new('Part');
Part.Name = Base.Name.."_Shader"
Part.Size = Base.Size
Part.Anchored = false
Part.CanCollide = false
Part.Color = CelColor
Part.CFrame = Base.CFrame
local Mesh = Instance.new('SpecialMesh');
Mesh.Name = "Mesh"
if Type == "Head" then
Mesh.MeshType = Enum.MeshType.Head
Mesh.Scale = HeadScale
elseif Type == "Acc" then
Mesh.MeshType = Enum.MeshType.FileMesh
if Base:FindFirstChild("SpecialMesh") then
Mesh.MeshId = Base.SpecialMesh.MeshId
Mesh.Scale = Base.SpecialMesh.Scale
else
Mesh.MeshId = Base.Mesh.MeshId
Mesh.Scale =Base.Mesh.Scale
end
--Mesh.Scale = Scale
--return
else
Mesh.MeshType = Enum.MeshType.FileMesh
Mesh.MeshId = Base.MeshId
Mesh.Scale = Scale
end;
Mesh.Parent = Part
local Weld = Instance.new('WeldConstraint');
Weld.Name = "Weld"
Weld.Part0 = Base
Weld.Part1 = Part
Weld.Parent = Part
--Weld.C1 = CFrame.new() *CFrame.Angles(3.15, 0, 0)
Part.Parent = Parent
print(Parent)
end;
local Folder = Instance.new('Folder');
Folder.Name = "Shader"
Folder.Parent = NPC
Acc = Accessory
Thanks in advance.
Sorry for the bad English.
-GalaxySMediaXz