So this is a pretty silly question because I know how to do this although I can’t seem to get it to work I’m trying to make a mesh part face in a direction of my mouse and tween its size to an end position, but I keep getting this result.
function GrabPack:Shoot(character,mousePos)
warn("shooting "..self.arm.." arm")
local startPosition = nil
if self.arm == "left" then
startPosition = character:FindFirstChild("Left Arm").Position
elseif self.arm == "right" then
startPosition = character:FindFirstChild("Right Arm").Position
end
local thing = workspace.MeshPart:Clone()
thing.Anchored = true
thing.CanCollide = false
thing.CFrame = CFrame.lookAt(startPosition,mousePos) --CFrame.new(startPosition,mousePos)
thing.Parent = workspace
local info = TweenInfo.new(1,Enum.EasingStyle.Quad,Enum.EasingDirection.Out,0,false,0)
local goals = {Size = Vector3.new(0.4, self.maxDistance, 0.4)}
local tween = TS:Create(thing,info,goals)
tween:Play()
end
I’ve tried CFrame.new, CFrame.lookAt and then some other ways I’ve found on the devforums, but keep getting this result so any help would be appreciated.