so im trying to make a hitbox for a bite tool and in the 9th line (right before the "end)") it does not send the part to my character, giving me the error shown in the title
script.Parent.Activated:Connect(function(player)
local hitbox = Instance.new("Part",game.Workspace)
hitbox.Name = "Hitbox"
hitbox.Anchored = true
hitbox.CanCollide = false
hitbox.BrickColor = BrickColor.new("Really red")
hitbox.Transparency = 0
hitbox.Size = Vector3.new(5,5,5)
hitbox.CFrame = CFrame.new[player.Character.Torso.CFrame]
end)

3 comments
I think if i use remote events it will work, if it does i will remove this question
The Activated property does not pass a player as an argument. That's why it's not working.
Activated event * and parameter*