I tried to combine one script with another, and make it so when you sit, it checks if you are a vip and if so it puts a gui in your playergui. It has no errors or anything.
Players = game:GetService("Players")
Workspace = game:GetService("Workspace")
Seat = script.Parent
GUI = script.GUI
Active = false
Player = nil
NewGui = nil
gps = game:GetService("GamePassService");
id = 266394204 --Gamepass ID
VIP = {"Player","NotSoNorm","Adeleina"} --Special Players
players = game.Players:GetPlayers()
Seat.ChildAdded:connect(function(Child)
for i=1,#VIP do
for i=1,#players do
if players[i].Name == VIP[i].Name or gps:PlayerHasPass(players[i], id) then
if Active == false then
if Child.Name == "SeatWeld" then
Active = true
Player = Players:GetPlayerFromCharacter(Child.Part1.Parent)
if Player ~= nil then
PlayerGui = Player:FindFirstChild("PlayerGui")
if PlayerGui ~= nil then
NewGui = GUI:Clone()
NewGui.Parent = PlayerGui
end
end
end
end
end
end
end
end)
