Hi! So Is it possible to make this script use a group id instead of a certain player name?
local seat = script.Parent
local AllowedPlayers = {
["wevetments"] = {false},
["Driftyzzz"] = {true}
}
local function OnChildAdded(Child)
if Child.Name == "SeatWeld" and Child:IsA("Weld") then
local Character = Child.Part1.Parent
if AllowedPlayers[Character.Name] then
if AllowedPlayers[Character.Name][1] == false then
wait(0.1)
seat.Disabled = true
wait(1)
seat.Disabled = false
end
else
wait(0.1)
seat.Disabled = true
wait(1)
seat.Disabled = false
end
end
end
seat.ChildAdded:Connect(OnChildAdded)
Thanks!

1 comment
Thanks!