I'm trying to make it where the parts would change its orientation every time I move my mouse.
To give you a better explanation on how I want it to look like, here it is: https://streamable.com/rt3u3g
The problem is that the variable, mousePos won't change. I tried doing a while loop, but I don't exactly know where to put it in. Anyways, please adjust or arrange my script, if needed too to make it work like that.
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)
coroutine.resume(coroTween)
