How I want it to look like: https://streamable.com/rt3u3g

My plan was to do a while loop on v.CFrame = CFrame.new(character.HumanoidRootPart.Position, mousePos). But that creates a lot of problems, and it doesn't work anyways because mousePos doesn't update because it's in a remote event. Is there anything I can use or ways to make it work?

Here's my server script that does the aiming

local mousePos = hit.Position
	local coroTween = coroutine.create(function()
		for i,v in pairs(gomuArms)do
			wait(0.033)	
			mousePos = hit.Position
			v.Parent = character
			v.CFrame = CFrame.new(character.HumanoidRootPart.Position, mousePos)
			v.CFrame = v.CFrame * CFrame.Angles(0,math.rad(-90),0)
			v.CFrame = v.CFrame * CFrame.new(math.random(-500,0)/100,math.random(0,500)/100,math.random(-500,500)/100)
			v.CFrame = v.CFrame * CFrame.new(-15,0,0)
			local Goals =
			{Size = v.Size + Vector3.new(30, 0, 0)
			}
			local gatlingTween = Tween:Create(v, Info, Goals)
			gatlingTween:Play()
		end
	end)

2 comments

0

Are the projectiles homing? Have you tried a RocketPropulsion and raycasting?

0

Do you mean like homing missles? Because if so, that's not what I meant as in follow.