#how to make silhouette effect on player

1 messages · Page 1 of 1 (latest)

olive crow
#

ive tried to make a script doing it but it dosent work i dont know why. its an r6 script and it effects the body parts of the r6 player

mortal shale
#

interesting colour scheme you got there fella

olive crow
#

yeah

#

dont mind it

mortal shale
#

does it just do nothing at all?

olive crow
#

yeah it does nothing

#

i dont know whats the problem

mortal shale
#

paste it here so i can test it

olive crow
#

ok

#

local function makeSilhouette(character)
for _, part in ipairs(character:GetDescendants()) do
if part:IsA("BasePart") then
part.Material = Enum.Material.SmoothPlastic
part.Color = Color3.new(0, 0, 0)
part.Transparency = 0
elseif part:IsA("Decal") then
part:Destroy()
end
end

local humanoid = character:FindFirstChildOfClass("Humanoid")
if humanoid then
    humanoid.DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None
end

end

game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(char)
task.wait(0.1)
makeSilhouette(char)
end)
end)

mortal shale
#

it's just meant to make the player black entirely right?

mortal shale
#

seems to mostly work for me

olive crow
#

i can send a vid

#

ill show you it dosent owrk

mortal shale
#

sure

#

but, in this case it's likely you just need to wait longer before you call the function, character may not be loaded

#

i'm doing it on a baseplate which will load faster than a proper game

#

try task.wait(1) to see if that's the issue

#

you can then fix it by doing player.CharacterAppearanceLoaded and whatnot to get a more accurate loading

olive crow
mortal shale
#

it doesn't do nothing

olive crow
#

yeah

mortal shale
#

you've got accessories on on top

olive crow
#

i was just like

#

yeah theres accessories

mortal shale
#

and you need to remove the Shirt and Pants of your character too

olive crow
#

oh

#

so the character like

#

needs to be naked or sum?

mortal shale
#

yes

#

undress him.

olive crow
#

uh how do i do that

#

by script

#

or manually

mortal shale
#

script

olive crow
#

okay

mortal shale
#

unless you're using the same character model for everyone?

#

then you could set it up easier tbh

olive crow
#

uh not same. their own character models

mortal shale
#

ok

#

actually, instead of doing all this

#

how about you add a Highlight object to the character, to make them fully black

#

that'd be a lot easier and more consistent than messing with all the clothing and accessories etc.

strong impBOT
#

studio** You are now Level 1! **studio

mortal shale
#

give it a try

olive crow
mortal shale
#

via script ideally

#

experiment with how it looks in play mode if you like tho idk

olive crow
mortal shale
#

you won't need to if you do the highlight method for silhouettes

olive crow
mortal shale
#

you gotta change the properties bro

olive crow
#

ohh ok

mortal shale
#

for example

#

a highlight with outlineTransparency = 1, FillColor = 0,0,0, and FillTransparency = 0

olive crow
#

i figured it out