Why does my go from the middle to the out inside instead from left to right? Also the size is 1,0,1,0
Please help. and have a great day.
Could you explain better? I dont understand what you mean.
Do you see the orange part is in the middle? I want to move it left to right.
Here is my script,
local Player = game.Players.LocalPlayer
local Leaderstats = Player:WaitForChild("leaderstats")
local Exp = Leaderstats:WaitForChild("Exp")
local BackgroundIndicator = script.Parent.Parent.BackgroundIndicatorFrame
local Indicator = script.Parent.IndicatorFrame
Exp.Changed:Connect(function(NewValue)
BackgroundIndicator:TweenSize(UDim2.new(Exp.Value/100,0,1,0))
Indicator:TweenSize(UDim2.new(Exp.Value/100,0,0,60))
end)
The orange part in the middle seems to have itβs AnchorPoint
property set to β0.5,0.5β. Try setting it to β0,0.5β. That will make it anchor to the left side, then when you change itβs scale, it will grow towards the right.
1 Like