When I press Q I go invisible like planned but only my head becomes visible again. Also my cooldown doesn' work.
CanLaunch = true
cooldown = 3
cloaktime = 5
if CanLaunch == true then local player = game.Players.LocalPlayer:GetMouse()
player.KeyDown:connect(function(key)
if string.lower(key) == "q" then CanLaunch = false
lPlyr = game.Players.LocalPlayer
targets = lPlyr.Character
for i, target in pairs(targets:GetChildren()) do
if target:IsA("Part") then
target.Transparency = .9
end end
wait(cloaktime)
for i, target in pairs(targets:GetChildren()) do
if target:IsA("Part") then
target.Transparency = 0
target.HumanoidRootPart.Transparency = 1
wait(cooldown)
CanLaunch = true
end end end end) end

2 comments
try removing .HumanoidRootPart.Transparency = 1... that might cause your torso and limbs to be invisible.
That is irrelevant, actually. The HumanoidRootPart is normally fully transparent.