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

is this VIP gui Script good? (fix it if it's broken)

Asked by 9 years ago

gamepass = 258497411 game.Players.PlayerAdded:connect(function(v) if game:GetService("GamePassService"):PlayerHasPass(player, gamepass) then local gui = game.Lighting.RegenGui gui.Parent = v.Startergui end

1 answer

Log in to vote
0
Answered by
Ryzox 220 Moderation Voter
9 years ago
local gamepass = 258497411

game.Players.PlayerAdded:connect(function(player) 
    if game:GetService("GamePassService"):PlayerHasPass(player, gamepass) then 
        local gui = game.Lighting.RegenGui:clone()
        gui.Parent = player.PlayerGui
    end
end)

In future please test the scripts yourself instead of relying on others to do everything for you.

0
You would have a parenthesis on that last end to show the end of the connection line. M39a9am3R 3210 — 9y
0
Oh yeah I forgot about that sorry. Ryzox 220 — 9y
Ad

Answer this question