Every time my script activates I am given error code -21 in console. The script does not subtract anything.
the code:
game.ReplicatedStorage.punchg.OnServerEvent:Connect(function(player, rayc, hp)
local part = rayc
local final = rayc:SubtractAsync({hp})
final.Parent = game.Workspace
end)
rayc is the wall, and hp is the part being subtracted from the wall