Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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

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.

2 comments

0

You would have a parenthesis on that last end to show the end of the connection line.

0

Oh yeah I forgot about that sorry.

This discussion is preserved as it was. New answers, comments, and votes are closed.