#knockback

13 messages · Page 1 of 1 (latest)

flint spade
#

apply bodyvelocity

halcyon panther
#

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 sad

still marsh
#

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

halcyon panther
#

its okay thanks man ill try this rn

#

ill try figuring this out tmr but thanks