Hi fellow developers . I wanted to ask that is there any way possible to create a toon shader in your roblox game using scripting ? I have found only one way so far and that is to duplicate the object , make one object bigger than the other and change its colour to black but that is really time consuming and difficult for complex builds. I will really appreciate all the help I receive.
Btw , this is what a toon shader does. It makes a cartoonish like outline on all the objects of your game.
Yeah , I want that thing only but I would then have to put the highlight individually on each and every part. Is there any script I can put in the server script service that may do the job?
for _, part in pairs(workspace:GetDescendants()) do
if part:IsA("BasePart") or part:IsA("UnionOperation") then
local highlight = Instance.new("Highlight")
highlight.Parent = part
highlight.Adornee = part
highlight.FillTransparency = 1
highlight.OutlineColor = Color3.fromRGB(0,0,0)
end
end
It might take a while though if you have a lot of parts. Could even crash. Make sure to save lol.
Oh shoot, I didn’t know you could highlight groups. In that case, OP can try:
for _, group in pairs(workspace:GetDescendants()) do
if group:IsA("Model") then
local highlight = Instance.new("Highlight")
highlight.Parent = group
highlight.FillTransparency = 1
highlight.OutlineColor = Color3.fromRGB(0,0,0)
end
end
Wait, actually you dont need a script at all. All you have to do is just group everything that you want highlighted into 1 group, then just put 1 singular highlight in it and it will highlight everything (or you can put it in the workspace but it works better in a group and you can also filter out the basplate and only highlight what you want)