If so can someone please help me? ty
COMMUNITY QUESTION
Is there a way I can script a model to disappear when only I join the game?
1 answer
here it is
game.Players.PlayerAdded:Connect(function(plr) -- waits until playeradded
local part = game.Workspace.Model:GetDescendants() -- makes variable and gets all decendants = all parts from the model btw dont place models in the model
for index, part in pairs(part) do
if plr.Name == ("Darkwolfgameryr") then -- if plr.Name == ("Player u want") then part transparency will be 1 and can collide will be off if its isnt darkwolfgameryr or whatever name u put there then it will be visible the part
part.Transparency = 1 -- makes part transparency = 1 (invisible)
part.CanCollide = false -- makes cancollide off (so u can walk through it optional)
end
end)
13 comments
0
idk if im allowed to do this tell me if not
0
btw u want to do it with a model so u have to :GetDescendants or :GetChildren
0
THANKS
0
can u accept answer if it works?
0
yes
0
do u know how to add children or descendant?
0
Where would I write :GetChildren?
0
If you have FE enabled, that part would be invisible for everyone. You would have to make a local script so it only changes for your player
0
i edited the script
0
btw it has to be a normal script
0
It's not working but i'm a noob to scripting so i'm doing something wrong.
0
add me on disc ChickenNugget#8766
0
ok
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
yes wait a secc i explain
try using a generic for loop with :GetDescendants or :GetChildren and setting the child/ descendants transparency to 1 if it is a basepart