Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Why will this not work?

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

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

2 comments

0

As you see I didn't use any body objects it's easier with CFrame or Weld and faster

0

the torso has to be anchored.

This discussion is preserved as it was. New answers, comments, and votes are closed.