Hello,

I have an Script that I need to add an Group rank to... I need this script because i Have an Group and i only want a Certain RAnk + Drive... Here is the Script the the Group Id but no rank.

wait(0.1)
Check = {"masterspartin191","RobloxRacingCorp","Player1"}--you'll want to keep this
Blacklist = {}
GroupID = 1044160
seat = script.Parent
cur = nil
script.Parent.ChildAdded:connect(function(it)--when a guy sits give him the gui and un-disable the LocalScript
	if it:IsA("Weld") then
		tempcur = it.Part1.Parent
		if cur ~= tempcur and cur ~= nil then tempcur.Humanoid.Sit = false return end
		if cur == tempcur then print("same guy!")return end
		print(tempcur.Name)
		done = false
		cur = tempcur
		local Player = game.Players:GetPlayerFromCharacter(cur)
		for _,i in pairs (Check) do
			if i == Player.Name or GroupID > 0 and Player:IsInGroup(GroupID) or GroupID == 0 then
				done = true
				if Player.PlayerGui:findFirstChild("Car") then
					done = false
				end
			end
		end
		for _,i in pairs (Blacklist) do
			if cur.Name == i then
				done = false
			end
		end
		if done == false then
			cur.Humanoid.Sit = false
			cur = nil
			Player = nil
			print(tempcur.Name.." was booted")
			script.Parent.Parent.Parent = workspace
		else
			script.Car:Clone().Parent = Player.PlayerGui
			game.Players:GetPlayerFromCharacter(cur).PlayerGui.Car.Frame.Seat.Value = script.Parent
			game.Players:GetPlayerFromCharacter(cur).PlayerGui.Car.Frame.LocalScript.Disabled = false
			script.Parent.Parent.Parent = cur--put the car in the Player so that it takes up less server power
		end
	elseif it:IsA("IntValue") then
		print("Bye Bye user!")
		cur = nil
		Player = nil
		script.Parent.Parent.Parent = workspace
	end
end)

for _,Door in pairs (script.Parent.Parent:GetChildren()) do
	if Door.Name == "Door" then
		local Opened = false
		Door.Touched:connect(function(P)
			if P.Parent:FindFirstChild("Humanoid") then
				local Player = game.Players:GetPlayerFromCharacter(P.Parent)
				local Allowed = false
				for C=1, #Check do
					if Allowed == false then
						if Player.Name == Check[C] or GroupID > 0 and Player:IsInGroup(GroupID) or GroupID == 0 then
							Allowed = true
							print("allowed")
							if Opened == false then
								Opened = true
								Door.CanCollide = false
								wait(4)
								Door.CanCollide = true
								Opened = false
							end
						end
					end
				end
			end
		end)
	end
end

Credit To Spacek531 For The Script!

2 comments

0

The script isn't even yours and you don't know what it means, but you want to rank up. Wrong place.

0

...