Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Gamepass script not its working and not have errors in the output,can you help me?

Asked by 6 years ago
Edited 6 years ago

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

0
is it a server script abnotaddable 920 — 6y

Answer this question