I have a problem with my skill help me pls!

You can help me with my kamehameha he goes from behind and in front and I just want him to go in front how can I do it?
https://gyazo.com/f8c41e5049d58f5420022edee96a81b0

for i, v in pairs(FolderBeam:GetChildren()) do
	if v.Name ~= "BeamIn" and v.Name ~= "BeamOut" then
		local goal = {}
		goal.Size = v.Size + Vector3.new(100,0,0)
		goal.CFrame = v.CFrame * CFrame.new(0,0,-50)
		local info = TweenInfo.new(6,5)
		local tween = TweenService:Create(v,info,goal)
		tween:Play()

	end
end

wait(6)

for i, v in pairs(Folder:GetChildren()) do
	local goal = {}
	goal.Transparency = v.Transparency + (1 - v.Transparency)
	local info = TweenInfo.new(1)
	local tween = TweenService:Create(v,info,goal)
		
	for i, v in pairs(FolderBeam:GetChildren()) do
		local goal = {}
		goal.Transparency = v.Transparency + (1 - v.Transparency)
		local info = TweenInfo.new(1)
		local tween1 = TweenService:Create(v,info,goal)

		tween:Play()
		tween1:Play()	
	end
end

end

2 Likes

Move it forward as it increases in size.

If you need more help than that, you’ll need to put a little more info and code in your question!

1 Like

ok thanks but how i can go forward and at the same time and put the size?

Do you have any code to show us?

for i, v in pairs(FolderBeam:GetChildren()) do
	if v.Name ~= "BeamIn" and v.Name ~= "BeamOut" then
		local goal = {}
		goal.Size = v.Size + Vector3.new(100,0,0)
		goal.CFrame = v.CFrame * CFrame.new(0,0,-50)
		local info = TweenInfo.new(6,5)
		local tween = TweenService:Create(v,info,goal)
		tween:Play()

	end
end

wait(6)

for i, v in pairs(Folder:GetChildren()) do
	local goal = {}
	goal.Transparency = v.Transparency + (1 - v.Transparency)
	local info = TweenInfo.new(1)
	local tween = TweenService:Create(v,info,goal)
		
	for i, v in pairs(FolderBeam:GetChildren()) do
		local goal = {}
		goal.Transparency = v.Transparency + (1 - v.Transparency)
		local info = TweenInfo.new(1)
		local tween1 = TweenService:Create(v,info,goal)

		tween:Play()
		tween1:Play()	
	end
end

end

I can tell you’re using Tween Service, you can use CFrame to move the part forward, but can you show us the code so we can help you.

Use LookVector https://gyazo.com/e36020c2a8b3bf37e3b14f1bf7e32ce2

I just modified it you can finally see my script

ok i will go and test it right away

what is “cf” i am a little lost

for i, v in pairs(FolderBeam:GetChildren()) do
if v.Name ~= “BeamIn” and v.Name ~= “BeamOut” then
local goal = {}
cf = cf + cf.LookVector * 50 – Move cf forward n units
goal.Size = v.Size + Vector3.new(100,0,0)
goal.CFrame = v.CFrame * CFrame.new(0,0,-50)
local info = TweenInfo.new(6,5)
local tween = TweenService:Create(v,info,goal)
tween:Play()

So the “cf” is the CFrame. (30)

I have to put this?

goal = v.CFrame + CFrame.LookVector * 50 – Move cf forward n units

Here is an example:

Part.CFrame = char.HumanoidRootPart.CFrame + Part.CFrame.lookVector * 10

it hasn’t changed anything I’m lost …

for i, v in pairs(FolderBeam:GetChildren()) do
		if v.Name ~= "BeamIn" and v.Name ~= "BeamOut" then
			local goal = {}
			goal.Size = v.Size + Vector3.new(100,0,0)
			goal.CFrame = Humrp.CFrame + v.CFrame.lookVector * 100
			--goal.CFrame = BeamIn.CFrame * CFrame.new(0,0,-50)
			local info = TweenInfo.new(6,5)
			local tween = TweenService:Create(v,info,goal)
			tween:Play()

		end
	end

[/quote]

It would be better if you just raycasted it, then have the part on the raycast.

I’m sorry but I don’t know what “raycasted” or “raycast” is I’m still new to scripting