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

How do I make a laser go in the direction that the player is looking?

I'm trying to make a laser that goes in the direction the player is looking

for i = 1,25 do

		ball.Position = ball.Position + Vector3.new(0,0,0) --laser projectile,its this part i need to in the direction of the player is looking 

(i just tryed with vector3 doing this, but I realized that it did not work out)

		mash.Scale = mash.Scale + Vector3.new(0,0,2) --laser mesh
		ball.Transparency = ball.Transparency + 0.1

		
		
		wait(0.0001)

end

2 comments

0

Post your code. We don't help users without code

0

lookvector can come in handy lol

1 answer

Just use character.HumanoidRootPart.CFrame.LookVector * (the power you want).

1 comment

0

This should be a comment.

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