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

Why will this not work?

Asked by 10 years ago

bp = Instance.new("BodyPosition",char.Torso) bp.maxForce = Vector3.new(math.huge,math.huge,math.huge) bp.Position = Vector3.new(-char.CFrame.lookVector)*Vector3.new(0,5,0)

Everything is tagged correctly, I want it to take my torso behind the position its lookvector is and then take me 5 studs in the air, also how would I make a backflip could I use BodyGyro?

1 answer

Log in to vote
0
Answered by 10 years ago
char = game.Players.LocalPlayer.Character
for i=1,5  do
    char.Torso.Anchored = true
    char.Torso.CFrame = char.Torso.CFrame * CFrame.new(0,i*2,i)
    if i <5 then
        char.Torso.CFrame = char.Torso.CFrame * CFrame.Angles(i-1,0,0)
    end
    wait(0.25)
end
char.Torso.Anchored = false
0
As you see I didn't use any body objects it's easier with CFrame or Weld and faster SilenceCore 25 — 10y
0
the torso has to be anchored. SilenceCore 25 — 10y
Ad

Answer this question