#knockback
13 messages · Page 1 of 1 (latest)
yes im trying but im trying to figure out how i should be putting it
im still new at scripting so im having a lil trouble with it 
you set a few things
P - the property of the body velocity that represents the starting point
max force - just put this as Vector3.new(9e9, 9e9, 9e9) because you dont wanna limit the max force
thats to my knowledge
and then velocity is where you want it to go
so for a simple knockback id do
local Debris = game:GetService(“Debris”)
local BodyVel = Instance.new(“BodyVelocity”)
BodyVel.P = 450
BodyVel.MaxForce = Vector3.new(9e9, 9e9, 9e9
BodyVel.Velocity = AttackerCharacterHere.HumanoidRootPart.CFrame.LookVector * wantedknockbackamount
BodyVel.Parent = TargetCharacterHere
Debris:AddItem(BodyVel, 0.3)
Sorry if its not organized well
Im on mobile lol