pcall(function()
if hit.Parent:IsA("Model") then
hit.Parent.PrimaryPart.Velocity = workspace.CurrentCamera.CFrame.LookVector * 12
end
end)
that knockbacks the character a bit when shooting at him the thing is when i shoot at the character it doesnt work (and when not using pcall it doesnt give errors) but after pushing the character a while it starts working and i have no idea why here a video about it
Haven’t seen the video but you can use LinearVelocity or BodyVelocity instance instead.
Also I wouldn’t do hit detections locally because it’s easily exploitable, however the issue could be that it doesn’t detect the hit object at all.