Syntax error help please

hello devofurm. its me again with antoehr syntax error because I am a pea brain.

Dev console:

Code:

local ModRank = 1
local BoosterRank = 1 
local EPURank = 1
local ModGroupID = 12562666
local BoosterGroupID = 11490168
local EPUGroupID = 11490168

local gui = game.ReplicatedStorage:FindFirstChild("ImageGui")
local gui2 = game.ReplicatedStorage:FindFirstChild("ImageGui2")
local gui3 = game.ReplicatedStorage:FindFirstChild("ImageGui3")

game.Players.PlayerAdded:Connect(function(Player)
	Player.CharacterAdded:Connect(function(Character)
		if Player:IsInGroup(BoosterGroupID) and Player:GetRankInGroup(BoosterGroupID) >= BoosterRank then 
			local clonedgui = gui:Clone()
			clonedgui.Parent = Character.Head
			clonedgui.Adornee = Character.Head
			print("booster")
			
		if Player:IsInGroup(ModGroupID) and Player:GetRankInGroup(ModGroupID) >= ModRank then 
			local clonedgui2 = gui:Clone()
			clonedgui2.Parent = Character.Head
			clonedgui2.Adornee = Character.Head
			print("mod")
			
		if Player:IsInGroup(EPUGroupID) and Player:GetRankInGroup(EPUGroupID) >= EPURank then 
			local clonedgui3 = gui3:Clone()
			clonedgui3.Parent = Character.Head
			clonedgui3.Adornee = Character.Head
			print("epu")
		print("done and stuf")
			end
		end
	end
end
local ModRank = 1
local BoosterRank = 1 
local EPURank = 1
local ModGroupID = 12562666
local BoosterGroupID = 11490168
local EPUGroupID = 11490168

local gui = game.ReplicatedStorage:FindFirstChild("ImageGui")
local gui2 = game.ReplicatedStorage:FindFirstChild("ImageGui2")
local gui3 = game.ReplicatedStorage:FindFirstChild("ImageGui3")

game.Players.PlayerAdded:Connect(function(Player)
	Player.CharacterAdded:Connect(function(Character)
		if Player:IsInGroup(BoosterGroupID) and Player:GetRankInGroup(BoosterGroupID) >= BoosterRank then 
			local clonedgui = gui:Clone()
			clonedgui.Parent = Character.Head
			clonedgui.Adornee = Character.Head
			print("booster")
			
		if Player:IsInGroup(ModGroupID) and Player:GetRankInGroup(ModGroupID) >= ModRank then 
			local clonedgui2 = gui:Clone()
			clonedgui2.Parent = Character.Head
			clonedgui2.Adornee = Character.Head
			print("mod")
			
		if Player:IsInGroup(EPUGroupID) and Player:GetRankInGroup(EPUGroupID) >= EPURank then 
			local clonedgui3 = gui3:Clone()
			clonedgui3.Parent = Character.Head
			clonedgui3.Adornee = Character.Head
			print("epu")
		print("done and stuf")
			end
		end

end
	end)
end)

you was
missing ) at the last end to close function