Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Body Velocity Issues and I don't know what to do anymore... Help?

Asked by 3 years ago
Edited 3 years ago

Alright so, I was testing these animations for a while and when the dummy gets kicked it doesn't move at all. When I was using a "StarterCharacter" The same thing happened in which the body velocity does not move the character at all. Basically, I need the Dummy model to get kicked backwards but instead it's staying the same place, I don't really know what to do here.

Here

StarterCharacter

What It's Supposed To Look Like

--Script

game.ReplicatedStorage.Kick.OnServerEvent:Connect(function()

    local bv = Instance.new('BodyVelocity')
    bv.Parent = workspace.Dummy.HumanoidRootPart
    bv.Velocity = workspace.Dummy.HumanoidRootPart.CFrame.LookVector * 500
    bv.MaxForce = Vector3.new(9999 , 9999 , 9999)

    wait(.85)
    bv:Destroy()

end)

--When Event Is Fired

TU.KeyframeReached:Connect(function(key)

    if key == "Kick" then
        CH:Stop(.3)
        KI:Play(.3)
        KI:AdjustSpeed(1.15)

        game.ReplicatedStorage.Kick:FireServer()


        local bv = Instance.new('BodyVelocity')
        bv.Parent = player.Character.HumanoidRootPart
        bv.Velocity = player.Character.HumanoidRootPart.CFrame.LookVector * 5
        bv.MaxForce = Vector3.new(9999 , 9999 , 9999)

        wait(.85)
        bv:Destroy()


        wait(2)

        player.Character.Humanoid.WalkSpeed = 16
        player.Character.Humanoid.JumpPower = 50

    end

end)

The script above works when I don't have a Custom Character but when I do the model doesn't move.

In the gif, the dummy doesn't move at all and in this code in which I tested on my default player not a "StarterCharacter" the script worked like a charm but when I added a "StarterCharacter" I didn't move. Any kind of help would be greatly appreciated or advice on what to do.

0
What do you mean added "StarterCharacter"? Can you send us pictures of your explorer? Could you show us a recording of what you intend to do? Maybe show us the script where you fire the event User#30567 0 — 3y
0
It's usually a good idea to use :WaitForChild() for items in ReplicatedStorage User#30567 0 — 3y
0
That is true but the script still runs, the Dummy model just doesn't move. GameBoyOtaku 63 — 3y
0
"Could you show us a recording of what you intend to do? " User#30567 0 — 3y
View all comments (2 more)
0
Yes GameBoyOtaku 63 — 3y
0
Couldn't you just drag the Torso/UpperTorso back with animation editor? User#30567 0 — 3y

Answer this question