Help with teleport script

I am trying to create a teleport script that lets me teleport players from one place to another place only if they are above a certain rank in my group. When I click the button to teleport the player it doesn’t teleport me and I also see this error:

Could you check over my script to see what is wrong with it?

local GroupId = 1234567
if game.Players:GetRankInGroup(GroupId) >= 201 then
	script.Parent.Visible = true
elseif game.Players:GetRankInGroup(GroupId) <= 252 then
	script.Parent.Visible = false
end

script.Parent.MouseButton1Down:Connect(function()
	game:GetService("TeleportService"):Teleport(7331292232)
end)
local GroupId = 1234567
local player = game.Players.LocalPlayer

if player:GetRankInGroup(GroupId) >= 201 then
	script.Parent.Visible = true
elseif player:GetRankInGroup(GroupId) <= 252 then
	script.Parent.Visible = false
end

script.Parent.MouseButton1Down:Connect(function()
	game:GetService("TeleportService"):Teleport(7331292232)
end)

Also, the if statement does not make sense.
You want the button to be visible if the rank is greater than or equal to 201, but less than or equal to 252?

Ok thanks for your help! Looks like I forgot to change that rank.