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

how to know where to put my cylinder of my kamehameha to?

I'm trying to make my kamehameha go in front of me but instead it's going all around the map.

		launch = Instance.new('Part', ctr)
		launch.Shape = 'Cylinder'
		launch.Size = Vector3.new(75, 5, 5)
		launch.CFrame = CFrame.new((42 + ctr:FindFirstChild('Torso').CFrame.x), ctr.Torso.CFrame.y, 0)
		launch.BrickColor = BrickColor.new('Toothpaste')
		launch.Material = 'Neon'
		launch.CanCollide = false
		launch.Anchored = true
		launch.CFrame = CFrame.new(launch.CFrame.Position, m.Hit.Position)

This is the script I'm using I need to find out how to make it go right in front of my torso.

4 comments

0

make a offset

0

im not good with CFrames and welding

0

a vector3 offset

0

and vector3

1 answer

✓ Accepted answer

Make an offset. The offset relative to the Torso's CFrame. That should be -42 in the Z axis judging by your code.

launch.CFrame = Torso.CFrame * CFrame.new(0, 0, -42)

1 comment

0

k

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