Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Anyone got a script that when you insert it to a model, that model would see everything invisible?

I ran out of characters in the title so I couldn't say everything specifically.

Basically, I want a script that when you insert it inside a humanoid model, that humanoid model would see parts, models, decals, texture, or everything completely transparent/invisible. Any help?

I'm new to scripting so don't bash me.

1 answer

for _, instance in pairs(game.Workspace:GetDescendants()) do
	if instance:IsA("BasePart") and instance.Transparency == 1 then
		instance.Transparency = 0.5
	end
end

If you pop that into a Character as a LocalScript, every part in the workspace with a transparency 1 will get a new transparency of 0.5.

However, some parts (like the HumanoidRootPart of characters) should probably stay fully transparent. Therefore, you'll want to add some checks to make sure you're targeting the parts you actually want to change. You can accomplish this any number of ways (eg. where the part is in the workspace, tagging the part with a tag value, or tagging the part using CollectionService).

This discussion is preserved as it was. New answers, comments, and votes are closed.