How much ends do i need to put

how much ends do i need
→ variables
local hrRankID = 150
local groupID = 12379026

game:GetService(“Players”).PlayerAdded:Connect(function(plr)
plr.Chatted:Connect(function(msg)
if plr:GetRankInGroup(groupID) >= hrRankID then
if msg == “/tb” then
workspace.inviswall1.CanCollide = false
workspace.inviswall2.CanCollide = false

You were just missing a few at the end:

local hrRankID = 150
local groupID = 12379026

game:GetService("Players").PlayerAdded:Connect(function(plr)
	plr.Chatted:Connect(function(msg)
		if plr:GetRankInGroup(groupID) >= hrRankID then
			if msg == "/tb" then
				workspace.inviswall1.CanCollide = false
				workspace.inviswall2.CanCollide = false
			end
		end
	end)
end)

Also for the future use ``` to put your code inside as it makes it easier to read.

-- Variables
local Players = game:GetService("Players")

local hrRankID = 150
local groupID = 12379026

Players.PlayerAdded:Connect(function(plr)
	plr.Chatted:Connect(function(msg)
		if plr:GetRankInGroup(groupID) >= hrRankID then
			if msg == "/tb" then
				workspace.inviswall1.CanCollide = false
				workspace.inviswall2.CanCollide = false
			end
		end
	end)
end)