nullfeelsJoin Date: 2017-03-31 Post Count: 1215 |
Hmm, I'll try then. |
|
LeafDoodeJoin Date: 2017-05-29 Post Count: 3094 |
don't use v use part |
|
acoo250Join Date: 2012-12-31 Post Count: 407 |
Does not work did i do a mistake ?
if part:IsA('Part') or part:IsA('MeshPart') or part:IsA("Decal") then
|
|
LeafDoodeJoin Date: 2017-05-29 Post Count: 3094 |
man, sometimes I hate Roblox Studio |
|
acoo250Join Date: 2012-12-31 Post Count: 407 |
i did this and didnt work
or part:IsA('Accessory') then
|
|
nullfeelsJoin Date: 2017-03-31 Post Count: 1215 |
Okay, yeah I tried to write code to make the face decal invis. as well, but setting the transparency isn't actually changing anything, even though the value is indeed changing... Not really sure what's going on there.
I'm a little busy atm, but if no one else offers up a solution first I will investigate further in a bit. |
|
LeafDoodeJoin Date: 2017-05-29 Post Count: 3094 |
if part:IsA('Accesssory') then
part:Destroy()
end |
|
LeafDoodeJoin Date: 2017-05-29 Post Count: 3094 |
@nullfeels
why change trans I like to destroy the whole decal lol |
|
acoo250Join Date: 2012-12-31 Post Count: 407 |
What's wrong with this line
if part:IsA('Part') or part:IsA('MeshPart') or part:IsA('Accessory') then
part.Transparency = 1
|
|
LeafDoodeJoin Date: 2017-05-29 Post Count: 3094 |
acoo
like this
if part:IsA("Part") or part:IsA("MeshPart") then
part.Transparency = 1
elseif part:IsA("Accessory") then
part:Destroy()
end |
|
acoo250Join Date: 2012-12-31 Post Count: 407 |
What's wrong now..
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
elseif part:IsA("Accessory") then
part:Destroy()
end
end
end
end)
end)
|
|
LeafDoodeJoin Date: 2017-05-29 Post Count: 3094 |
@acoo250
remember
sometimes
roblox studio
sucks |
|
acoo250Join Date: 2012-12-31 Post Count: 407 |
but one of the end() is red
|
|
LeafDoodeJoin Date: 2017-05-29 Post Count: 3094 |
@acoo250
the script is working 100 percent and i can prove it
game.Players.PlayerAdded:connect(function(player)
player.CharacterAdded:connect(function(char)
charStuff = char:GetChildren()
for number,part in ipairs(charStuff) do
if part:IsA('LocalScript') then
part:Destroy()
end
end
end)
end)
as you can see i made it part:IsA('LocalScript') now this will delete the animation script but when i replace it with "Accessory" it won't work this sucks. |
|
LeafDoodeJoin Date: 2017-05-29 Post Count: 3094 |
Humanoid:RemoveAccessories()
FORGOT ABOut that its been a while since i actually got back to scripting |
|
nullfeelsJoin Date: 2017-03-31 Post Count: 1215 |
Sorry I had to leave like that...
This is how I ended up doing it:
local player = game.Players.LocalPlayer
player.CanLoadCharacterAppearance = false
--or can use player:ClearCharacterAppearance () at a later point if needed
player.CharacterAdded:Connect(function(char)
char:WaitForChild("Head"):WaitForChild("face"):Destroy()
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 |
I'm also thinking that this "or v:IsA("MeshPart")" probably wouldn't be necessary anymore since the code is setting CanLoadCharacterAppearance to false |
|
nullfeelsJoin Date: 2017-03-31 Post Count: 1215 |
Sorry again for the long wait I had something important I needed to do right away. |
|
nullfeelsJoin Date: 2017-03-31 Post Count: 1215 |
Sorry for spam posting, but I kinda just went with Destory for getting rid of the face, but you don't have to. If you don't want that you can use this instead:
char:WaitForChild("Head"):WaitForChild("face").Transparency = 1 |
|