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)