I've been trying to make a character invisible with their shadow remaining. I've looked into several methods of alternatively making a character invisible, which none keep the shadow and some not working. I need a way to make the character (R6) invisible to everyone, but keep the shadow on the ground. Any solutions?
game.Players.PlayerAdded:Connect(function(player) local Tool = script.Parent Tool.Equipped:Connect(function(Mouse) Mouse.Button1Down:Connect(function() player.Character.Head.Transparancy = 1 end) end) end)
This is what I've been trying, as I said this doesn't work because the shadow vanishes.
I think there is a property called CastShadow in the BasePart object, look in the BasePart and see if there is no CastShadow property and if there is then set it to true, otherwise I'll try to think up of a better solution
So your code would be:
game.Players.PlayerAdded:Connect(function(player) local Tool = script.Parent Tool.Equipped:Connect(function(Mouse) Mouse.Button1Down:Connect(function() player.Character.Head.Transparancy = 1 player.Character.Head.CastShadow = true end) end) end)
Heres a link to CastShadow property: https://developer.roblox.com/en-us/api-reference/property/BasePart/CastShadow
This answer is probably not gonna work or you already tried it before