Script error help

Hey I’m just trying to make a Hand-To gui and heres the script:
But i get an error (below the script)

game.ReplicatedStorage.Events.HandTo.OnServerEvent:Connect(function(player, text)
	local Playertogive = game.Players:FindFirstChild(game.Players:FindFirstChild(text))
	if Playertogive then
		for _,v in pairs (player.Backpack) do
			if v.Equipped == true then
				local ClonedTool = v:Clone()
				ClonedTool.Parent = Playertogive.Backpack
				v:Destroy()
			end
			end
end)

error:
ServerScriptService.Script:12: Expected identifier when parsing expression, got ‘)’

You are missing a another end, you didn’t close the then statement at line 3

2 Likes