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

How to use the CFrame.LookVector ?

So, i've tried to use the CFrame.LookVector for making an explosion but i have problems with that.

Can someone help me for that ?

The script :

for i = 1, 50, 1 do
	local p = Instance.new("Part")
	local la = workspace.Baseplate
	p.Parent = workspace
	p.Anchored = true
	p.Position = Vector3.new(0, -8, 0)
	p.Color = Color3.new(1, 0, 0)
	p.CFrame = CFrame.lookAt(p.Position, la.Position)
	function f1()
		p
	end
end

it's on the

function lv()
	p
end

that i'm blocking.

2 comments

0

sus

0

cool amogus reference in scripting

1 answer

Im not sure whats on your script but CFrame.LookVector is a part's front direction, the difference between cframe and lookvector is that lookvector is not a CFrame value, but a number which how many studs you want the part travels from the front direction!

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