getgenv().config = {Time = 0.045, Size = 0.9}
local UIS = game:GetService("UserInputService")
local TweenService = game:GetService("TweenService")
local Player = game:GetService("Players").LocalPlayer
local Bar = Player.PlayerGui.Visual.Shooting.Bar
UIS.InputBegan:Connect(function(input, gpe)
if gpe then return end
if input.KeyCode == Enum.KeyCode.E then
if Player.Character:FindFirstChild("Basketball") then
while UIS:IsKeyDown(Enum.KeyCode.E) do
Bar:GetPropertyChangedSignal("Size"):Connect(function()
if Bar.Size.Y.Scale > getgenv().config.Size then
Bar:TweenSize(UDim2.new(1,0,1,0), Enum.EasingDirection.Out, Enum.EasingStyle.Linear, getgenv().config.Time, true)
task.wait()
Bar.Size = UDim2.new(1,0,1,0)
end
end)
task.wait()
end
end
end
end)