I’m trying to make it so the projectile tweens to a position that goes by the rotation of the cannon, but It wont work
local Clone = script.Parent.bomb:Clone()
Clone.Parent = script.Parent
Clone.Visible = true
Clone.Name = "Projectile"
Clone.Position = UDim2.new(script.Parent.Rotation, 0,1,0)
local PosX = Clone.Position.X
local PosY = Clone.Position.Y
local Info = TweenInfo.new(1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out)
local Tween = TweenService:Create(Clone, Info, {Position = UDim2.new(PosX, 0, PosY - 0.3)})
Tween:Play()
end