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

Persons in group humanoid transparent help?

So, this is meant to turn everyone that is in the group whole body to 0.4 in transperancy but it wont work.

local groupId = 514785
function RegisterPlayer( player ) 
if CheckInGroup(player, groupId) then
local body = game.Players[player].Character:getChildren()
for i = 1, #body do
if body[i].className == "Part" and body[i].Name ~= "HumanoidRootPart" then do
body[i].Transparency= 0.4
end

1 answer

✓ Accepted answer

So the bigges issue i noticed here is that your script has function that is Never called. It is also very over complicated. To fix this you should just do this:

local Id = 514785
local player = game.Players.LocalPlayer
repeat wait() until player.Character
if player:IsInGroup(Id) then
	for i,v in pairs(player.Character:GetChildren()) do
		if v:IsA("Part") then
			v.Transparency = .4
		end
	end	
end

You should put this in a local script and place the script in startergui or starterpack.

~~Hope I Helped

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