Headless Head Gamepass

Hello there I am trying to fix this script It’s a game pass where If you buy it then you become headless, I did not make this script someone else helped out by making this script for me as I don’t know how to script. The script works how I want it to accept for the face not disappearing.

Screenshot:

https://gyazo.com/7d33db36a7fb7307f05d7d10679fc7aa

The Script:

local Players = game:GetService('Players')
local MarketplaceService = game:GetService('MarketplaceService')
local GamePassId = 15880440


local function PlayerAdded(Player)
	local function CharacterAdded(Character)
		local Check = MarketplaceService:UserOwnsGamePassAsync(Player.UserId, GamePassId)
		if Check then
			local Head = Character.Head
			Head.Transparency = 0.99
			Head.face:Destory()
		end
	end
	local Character = Player.Character
	if Character then 


		coroutine.resume(coroutine.create(function()
			CharacterAdded(Character)
		end))
	end
	Player.CharacterAdded:Connect(CharacterAdded)
end


local GetPlayers = Players:GetPlayers()
for i = 1, #GetPlayers do
	local Player = GetPlayers[i]
	coroutine.resume(coroutine.create(function()


		PlayerAdded(Player)
	end))
end
Players.PlayerAdded:Connect(PlayerAdded)

The head is disappearing, but what isn’t are the things on your head. To do this, simply add this script in to make all the accessories on yourself transparent

for _, item in pairs(game.Workspace:WaitForChild(tostring(player):GetChildren()) do
	if item:IsA("Accessory") then
		for _, part in pairs(item:GetDescendants()) do
			if part:IsA("Part") then
				part.Transparency = 1
			end
		end
	end
end

Add this under Head.face:Destroy()

Someone misspelled Destroy. On line 12, you have Head.face:Destory() change Destory to Destroy

3 Likes

This isn’t gonna help your current issue but why are you creating a new Coroutine?

local Player = GetPlayers[i]
	coroutine.resume(coroutine.create(function()
		PlayerAdded(Player)
	end))

This, you’re creating one each time it loops through the player table.

But you can do what you like.

1 Like

Just like the headless horseman I want the invisible head not invisible assorys

Ill go change that and see if it fixes the issue