#how to make silhouette effect on player
1 messages · Page 1 of 1 (latest)
interesting colour scheme you got there fella
does it just do nothing at all?
paste it here so i can test it
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)
it's just meant to make the player black entirely right?
seems to mostly work for me
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
alr
it only affects the torso
it doesn't do nothing
yeah
you've got accessories on on top
and you need to remove the Shirt and Pants of your character too
script
okay
unless you're using the same character model for everyone?
then you could set it up easier tbh
uh not same. their own character models
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.
okay
** You are now Level 1! **
give it a try
in editor or play mode?
can you give me a script which makes the shirt and pants like deleted when the player joins the game? i dont know how to do that shit
you won't need to if you do the highlight method for silhouettes
the highlight method is ass its just highlighting the outlines
you gotta change the properties bro
ohh ok