Projectile tween error

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

can you show what’s happening and what do you want it to do ?

I figured it out and solved it, sorry for wasting your time whoever replied on here

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.