Script not shooting player back?

I have a problem my script wont work and I get this error:
Screen Shot 2022-05-21 at 6.17.17 PM

game.Workspace:WaitForChild(playerName).Humanoid.RootPart.velocity =,-1.5,0)
1 Like

does HumanoidRootPart use dots?

Humanoid.RootPart is a way to get the humanoidrootpart
Screen Shot 2022-05-21 at 6.36.58 PM

try using Velocity instead of velocity or just get the humanoid root part like Character.HumanoidRootPart

I got it to work but it dosent let me get any higher.

Well thats kinda off topic now but I suggest using forces like VectorForce

Do you know a way to implement that?

yeah, heres an example:

	local force ="VectorForce")
						local att0 ="Attachment")

						att0.Parent = hum.Parent.PrimaryPart -- make sure to add character variable

						force.Parent =  hum.Parent.PrimaryPart

						force.Force =  hum.Parent.PrimaryPart.CFrame.LookVector * 175

						force.ApplyAtCenterOfMass = false

						force.RelativeTo = Enum.ActuatorRelativeTo.World

I tried to script that but it dosent do anything (I tried a few hours ago)

Well this topic is already solved so just mark the solution and make a new topic to solve that issue.

try to use other body forces and read the documentation

or try using Velocity again but instead of = use +=

1 Like

Screen Shot 2022-05-21 at 6.58.57 PM
Sent me too the shadow relm lol, I need to change the settings
Screen Shot 2022-05-21 at 6.59.30 PM

It does increase now but it only shoots me up and it dosent change depending on my camera angle

you never even asked me for that??

then change the vector?

anyways use the cameras CFrame to make it go to where your camera is facing

this topic has already been solved as you only asked for

and i fixed it, so you can mark the solution and make a new topic for help on the knock back

Oh sorry I was misremembering the topic, I made one like this a little bit ago and it said that sorry. :smiley: