How to make Players Wings invisible

ER not really sure i wanna add each id for everyone wing

1 Like

Ah my bad. I assumed something about gmatch in Roblox that doesn’t seem to be the case. Try this:

local Player = game.Players.LocalPlayer
local character = Player.Character:GetChildren()

for _, object in ipairs(character) do
	if object:IsA("BasePart") then
		if string.lower(object.Name):gmatch("left")() == "left" then
			object.Transparency = 0.9
		end
	end
end

I did this to test without wings. But just replace “BasePart” with “Accessory”, “left” with “wings” and object.Tranparency with object.Handle.Transparency and test that out.

doesnt work still :confused:

local Player = game.Players.LocalPlayer
local character = Player.Character:GetChildren()

for _, object in ipairs(character) do
	if object:IsA("Accessory") then
		if string.lower(object.Name):gmatch("wings")() == "wings" then
			object.Handle.Transparency = 0.9
		end
	end
end

```

I tested the code with player bodyparts, and they turned transparent, so I’m pretty sure the code works on it’s own.

This might be a problem with where the code is executed, or perhaps in the model of the object itself (Some objects just won’t become transparent due to decals and other things on them, which requires different code to fix)

Would the code i put work? and my wings dont have any decal im able to manually change them transparent even