✓ Accepted answer
Try this:
script.Parent.Touched:connect(function()
local player = game.Players:GetPlayers()
for i, v in pairs(player) do
if v.Character.Humanoid.Rig =="R15" then
v.Character.UpperTorso.Transparency = 0.5
v.Character.LowerTorso.Transparency = 0.5
else
v.Character.Torso.Transparency = 0.5
end
end)
Compatible with both r15 and r6.
If you mean your entire character:
script.Parent.Touched:connect(function()
local player = game.Players:GetPlayers()
for i, v in pairs(player) do
char = v.Character:GetDescendants()
for o = 1,#char do
if char[o]:IsA('MeshPart') or char[o]:IsA('UnionOperation') or char[o]:IsA('Part') then
char[o].Transparency = 0.5
end
end
end
end)
tbh helping with a mobile device is a hassle. i just woke up minutes ago... i feel lazy to open my laptop...
5 comments
Yes, if your game is using R15 avatars, there is no torso. There is the Upper Torso and LowerTorso.
That is why your getting an error, there is no 'Torso' inside the player. Change v.Character.Torso to v.Character.UpperTorso and another one with v.Character.LowerTorso.
Well when i put that in there isn't any errors but the brick turns invisible instead not me
The brick? Or the torso?
the brick turns invisible instead, not me