I’m pretty new at scripting but I’m trying to making a group seat that only accepts the minimum and maximum rank, plus another rank that’s allowed to sit on it. It’s currently not working and acts like a normal seat.
Output Error:
00:37:02.828 Workspace.TechRoomPC.Sofa.Seat.Group Only Seat:8: attempt to compare number and boolean - Server - Group Only Seat:8
GroupID = 9392267
min = 101
max = 255
accept = 12
script.Parent.ChildAdded:connect(function(child)
if child.Name == "SeatWeld" then
if not game.Players:GetPlayerFromCharacter(child.Part1.Parent):GetRankInGroup(GroupID) >= min and
game.Players:GetPlayerFromCharacter(child.Part1.Parent):GetRankInGroup(GroupID) <= max and
game.Players:GetPlayerFromCharacter(child.Part1.Parent):GetRankInGroup(GroupID) == accept then
wait(0.00001) --Looking for me? :D
child:Destroy()
child.Part1.Parent.Humanoid.Jump = true
end
end
end)