Hi. New to tables, this is one of my first attempts.
As far as I know, there aren't any problems in syntax, so I'm not sure why this script does not work.
If anyone can point me in the right direction, I'd be very grateful :)
function ghost()
local parts = game.Workspace:FindFirstChild("Player1")
for i,v in pairs (parts:GetChildren()) do
v.Transparency = 0.5
end
end
if game.Workspace:FindFirstChild("Player1").Humanoid.Health == 0 then
ghost()
end
Note: This is just a test on the ROBLOX Studio character. I don't expect this to work in-game.
