acoo250Join Date: 2012-12-31 Post Count: 407 |
like when he/she joins the game the character will go invisible?
|
|
LeafDoodeJoin Date: 2017-05-29 Post Count: 3094 |
game.Players.PlayerAdded:connect(function(player)
player.CharacterAdded:connect(function(char)
charStuff = char:GetChildren()
for number,part in pairs(charStuff) do
if part:IsA('Part') then
part.Trasnparency = 1
end
end
end)
end)
did it work didnt test it in studio |
|
LeafDoodeJoin Date: 2017-05-29 Post Count: 3094 |
oops here's the fix
game.Players.PlayerAdded:connect(function(player)
player.CharacterAdded:connect(function(char)
charStuff = char:GetChildren()
for number,part in pairs(charStuff) do
if part:IsA('Part') then
part.Transparency = 1
end
end
end)
end)
|
|
acoo250Join Date: 2012-12-31 Post Count: 407 |
didn't work CharStuff is on a blueline
|
|
LeafDoodeJoin Date: 2017-05-29 Post Count: 3094 |
that does not matter! if its blue use the fixed version and make the script a normal script and put it in workspace |
|
acoo250Join Date: 2012-12-31 Post Count: 407 |
i did it didnt work
|
|
LeafDoodeJoin Date: 2017-05-29 Post Count: 3094 |
well, it worked for me is there any errors in the output? |
|
Snow_DudeJoin Date: 2016-06-11 Post Count: 713 |
Test it online |
|
LeafDoodeJoin Date: 2017-05-29 Post Count: 3094 |
I SEE THE PROBLEM U ARE USING R15 AND R15 DOES NOT HAVE PARTS IT HAS MESH PARTS LEMME FIX THE SCRIPT REAL QUICK BRO |
|
|
LeafDoodeJoin Date: 2017-05-29 Post Count: 3094 |
^ ################ # used basepart didn't even make all the characters joints invisible |
|
LeafDoodeJoin Date: 2017-05-29 Post Count: 3094 |
i don't know what's wrong with my script it makes some objects that are meshparts invisible like the uppertorso and lowertorso but does not make the other meshparts invisible idk |
|
LeafDoodeJoin Date: 2017-05-29 Post Count: 3094 |
here's the code btw
game.Players.PlayerAdded:connect(function(player)
player.CharacterAdded:connect(function(char)
charStuff = char:GetChildren()
for number,part in pairs(charStuff) do
if part:IsA('Part') or part:IsA('MeshPart') then
part.Transparency = 1
end
end
end)
end)
|
|
nullfeelsJoin Date: 2017-03-31 Post Count: 1215 |
I'm thinking this might work for R6 and R15. If you wanted to however the humanoid has a property "RigType" that you could check. What you need depends on what you want...
Just for example purposes I will use a local script located in StarterPlayer.StarterPlayerScripts.
local player = game.Players.LocalPlayer
player.CharacterAdded:Connect(function(char)
for k,v in pairs(char:GetChildren()) do
if (v:IsA("Part") or v:IsA("UnionOperation")) then
v.Transparency = 1
end
end
end)
If you want to make the face, accessories, etc. invisible as well, you would need to add conditions for that too. |
|
LeafDoodeJoin Date: 2017-05-29 Post Count: 3094 |
@nufells
I know the RigType property plus I used if part:IsA('Part') or part:IsA('MeshPart') |
|
nullfeelsJoin Date: 2017-03-31 Post Count: 1215 |
Sorry, I should have paid attention to the posts before mine. R15 does indeed use meshparts. Here is the updated code.
local player = game.Players.LocalPlayer
player.CharacterAdded:Connect(function(char)
for k,v in pairs(char:GetChildren()) do
if (v:IsA("Part") or v:IsA("MeshPart") or v:IsA("UnionOperation")) then
v.Transparency = 1
end
end
end) |
|
nullfeelsJoin Date: 2017-03-31 Post Count: 1215 |
@LeafDoode, yeah I just realized I needed to check for meshparts as well when I read your post. |
|
LeafDoodeJoin Date: 2017-05-29 Post Count: 3094 |
@nullfeels plus it didn't work
i don't know why this is a big mystery to me
plus @nullfeels it makes some parts invisible just like my script and urs |
|
LeafDoodeJoin Date: 2017-05-29 Post Count: 3094 |
oh let me test the new script |
|
acoo250Join Date: 2012-12-31 Post Count: 407 |
thanks now i ust need a script to remove the face/hats
|
|
LeafDoodeJoin Date: 2017-05-29 Post Count: 3094 |
@nullfeels
still does not work :/
i don't know why it only makes some parts invisible my script makes some parts invisible same as urs |
|
nullfeelsJoin Date: 2017-03-31 Post Count: 1215 |
for the face just add "or v:IsA("Decal")" <- should work, and for hats, accessories... I'm not exactly sure, unless you can loop through their parts and set their transparency that way. <-- should work as well... |
|
nullfeelsJoin Date: 2017-03-31 Post Count: 1215 |
@LeafDoode, if the parts you're talking about are accessories, decals, etc. then my previous post might cover that. If it's something else then IDK. I tested it with both R6 and R15 and it worked for me. |
|
acoo250Join Date: 2012-12-31 Post Count: 407 |
the vdecal thing dont work
|
|
LeafDoodeJoin Date: 2017-05-29 Post Count: 3094 |
for hats etc use or :IsA('Accessory') then |
|