Attempt to call a Instance

I know this is a pretty basic block of code but I just wanted to test this before I built it up and I’m glad I did. All I am getting in the output is ‘attempt to call a Instance value’ which isn’t very helpful and everywhere I’ve looked doesn’t have an answer I can use so I have finally come to you. I just don’t get it, all it’s supposed to do is remove the left foot.

local btn = workspace.btn.ClickDetector

btn.MouseClick:Connect(function(player)
	workspace(player).LeftFoot:Remove()
end)

Thanks.

It is workspace[player] or player.Character

local btn = workspace.btn.ClickDetector

btn.MouseClick:Connect(function(player)
	workspace:WaitForChild(player.Name):WaitForChild("LeftFoot"):Destroy()
end)

Remove() has been deprecated from roblox studio, use Destroy()

local btn = workspace.btn.ClickDetector

btn.MouseClick:Connect(function(player)
	player.Character.LeftFoot:Destroy()
end)