Code to make an NPC invisible doesn't work half the time

Does it change things to be a transparency of 1 though? (invisible)

1 Like

even if it did 1 is still greater or equal to 0

2 Likes

It makes one part invisible (the glasses) but nothing else is.
image

1 Like

Made it while (v.Transparency < 1) do and now it works! Thank you both so much!! Roblox is really weird with loading orders and things sometimes.

2 Likes

Dang yeah I guess i got confused with the sign and which way it goes, glad you got it working!

1 Like

Hmm, I would not recommend because it uses a bit of performance. Personally, I would add this in the beginning of your script :

if not game:IsLoaded() then
    game.Loaded:Wait()
end

But it’s you choice

The problem still happens even when I do that, I’m very unsure why but it does.

I think it’s a problem of replication of parts from the server to the client…

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.