Make gui visible to player with certain title

Events.JoinParty.OnClientEvent:Connect(function(party)
	
	Gui.Enabled = true
	Container.Visible = false
	Temp.Visible = false
	Title.Text = "Player List"
	PlayerContainer.Visible = true
	DungeonStatus.Visible = true
	SelectedFrame.Visible = false
	
	for _, gui in pairs(PlayerContainer:GetChildren()) do
		if gui:IsA("ImageButton") and gui.Name ~= "Template" then
			gui:Destroy()
		end
	end


	task.delay(0.01, function()
		for _, player in pairs(party.members) do
			local template = PlayerContainer:WaitForChild("Template"):Clone()
			template.Name = player.Name
			template.PlayerName.Text = player.DisplayName
			template.PlayerLevel.Text = "Lvl " .. player.PlayerData.Level.Value
			template.PlayerImage.Image = game.Players:GetUserThumbnailAsync(player.UserId, Enum.ThumbnailType.HeadShot, Enum.ThumbnailSize.Size420x420)

			if player == party.leader then
				template.LeaderIcon.Visible = true
			end
			
			template.Kick.Visible = false -- if player == party.leader then they can see this on every other players but those players cannot see it
			
			

			template.Visible = true
			template.Parent = PlayerContainer
		end
	end)

end)

i want the kick button only to be seen by the party leader, if they arent the leader they will not be able to see the button