I’ve been working on a script that applies a cell shading outline to the player and I’ve been wondering how I could achieve this with an accessory. (I gave up on trying to do cartoon shading so i tried using forcefield but this failed as well.
Base image:
Script: (Just the portion of the script that I need help with.)
local mesh = v.Handle:FindFirstChild("Mesh") or v.Handle:FindFirstChild("SpecialMesh")
local cel1 = Instance.new("MeshPart")
cel1.CanCollide = false
cel1.Material = "ForceField"
cel1.MeshId = mesh.MeshId
local cel1weld = Instance.new("Weld")
cel1weld.Parent = v.Handle
cel1weld.Part0 = v.Handle
cel1weld.Part1 = cel1
local cel2 = Instance.new("MeshPart")
cel2.CanCollide = false
cel2.Material = "ForceField"
cel2.MeshId = mesh.MeshId
local cel2weld = Instance.new("Weld")
cel2weld.Parent = v.Handle
cel2weld.Part0 = v.Handle
cel2weld.Part1 = cel2
local cel3 = Instance.new("MeshPart")
cel3.CanCollide = false
cel3.Material = "ForceField"
cel3.MeshId = mesh.MeshId
local cel3weld = Instance.new("Weld")
cel3weld.Parent = v.Handle
cel3weld.Part0 = v.Handle
cel3weld.Part1 = cel3
end