Why this script not working. help me fix it please.
local script:
local PassId = 21114743
game.Players.PlayerAdded:Connect(function(p)
if game:GetService("MarketplaceService"):UserOwnsGamePassAsync(p.UserId, PassId) then
p.PlayerGui.InfiniteSkip.Frame.Visible = true
end
p.CharacterAdded:Connect(function()
p.PlayerGui:WaitForChild("InfiniteSkip"):WaitForChild("Frame").Visible = true
end)
end)
local db = true
local skip = game.ReplicatedStorage:WaitForChild("Skip")
also in this instance it doesnt work because you are using PlayerAdded, you don’t want to manipulate other ppls guis (not like you can) but a better idea would be to remove the playeradded thing and then do