EDIT: I FIXED THE SCRIPT NOW ITS WORKING
Hey im trying to make when one player purchase a gamepass the gui go to PlayerGui but not its working and not have errors in the output this its the script:
local GamePassService = game:GetService("GamePassService") game.Players.PlayerAdded:connect(function(player) if GamePassService:PlayerHasPass(player, 1049794364) then local Gui = script.Parent local PlayerGui = player:WaitForChild("PlayerGui") Gui:Clone().Parent = PlayerGui end end)
please help me