Whenever I play and play the output always says there is something wrong with the torso, I don't know if it's r15 or something else
Here's the script:
script.Parent.Touched:connect(function() local player = game.Players:GetPlayers() for i, v in pairs(player) do v.Character.Torso.Transparency = 0.5 end end)
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...