Right to left in what way? Like the bar itself moves right to left or have a sort of ‘shine’ moving right to left
I see.
Ok in this case, since I see you have a frame in which the bar is parented too. You can try this:
local TS,TI = game:GetService("TweenService"),TweenInfo.new(Duration,Enum.EasingStyle.Style,Enum.EasingDirection.Direction,Repeatnumber,ReverseBoolean,Delay) --Note the commas separating the variable's, I just do it for fun
local Bar = script.Parent --If parented to the bar
local Event = game.ReplicatedStorage.RemoteEvent --I'm assuming the event is in replicated Storage
local Animation = TS:Create(Bar,TI,{Position = UDim2.new(Number Until Bar disappears in negative,0,0,0})
function AnimationPlay()
Animation:Play()
end
Event.OnClientEvent:Connect(AnimationPlay)
EDIT: Don’t forget to make ClipDescendants
in the Frame true.
PS: Remember it is against the rules on the devforum to ask for full scripts, make sure you do your research before making a topic bro.