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

How do I get it so my orientation faces my mouse?

Im pretty confused on how to make my kamehameha cylinder part to face my mouse

launch.Orientation = Vector3.new(0, m.Hit.y, 0)

I have no idea but if I should use CFrame instead tell meh. P.S. I'm a dbz fan.

5 comments

0

local mouse = game.Players.LocalPlayer:GetMouse()

0

ITS LITERALLY A YEAR AGO

0

launch.Orientation = Vector3.new(Mouse.Hit.p)

0

bro

0

lol

1 answer

✓ Accepted answer

use the CFrame.new(vector pos, vector lookAt) constructor which takes in a vector3 value as the position and another value to look at.

launch.CFrame = CFrame.new(launch.CFrame.Position, m.Hit.Position)

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