Skew Tween Effect

I think the right effect to call this is “skew”

I have these bars that right now are stable in one position but I want them to be going towards the top right corner. I think you can get the general idea from the Image I provide.

1 Like

This is extremely close to what I want! Here’s my current code.

local TweenService = game:GetService("TweenService")
local Player = game:GetService("Players").LocalPlayer
local Effects = Player.PlayerGui.MainMenu.Background.MainFrame.Effects
local Main = Effects.MainEffectFrame

local TInfo = TweenInfo.new(1, Enum.EasingStyle.Linear, Enum.EasingDirection.Out, -1, true, 0)

for i=1, 0, -.05 do
	local Clone = Main:Clone()
	Clone.Parent = Effects
	Clone.Name = Clone.Name .. tostring(i)
	Clone.Position = UDim2.fromScale(i, i)
	TweenService:Create(Clone, TInfo, {Position = UDim2.fromScale(i -.05, i-.05)}):Play()
end

instead of what I have right now it should be a constant to the top left.

{Position = UDim2.fromScale(i+0.05, i+0.05)}

1 Like

try changing the true in the tweeninfo to false?

3 Likes

Surely that will have to end at some point, i would also add more to the size too

1 Like

Doing as suggested it just clips to the starting position once it reaches it’s goal. Not really the effect I’m looking for.

The size on the bar is Scale (2,2) so there is no way it could show a end of the bar

Actually this did work.
On paper it didn’t sound like it would work.

2 Likes