game.Workspace.EnergyBarShop.EnergyBarShopItem.ClickDetector.MouseClick:Connect(function(plr)
if plr.leaderstats.Money.Value >= 20000 then
plr.leaderstats.Money.Value = plr.leaderstats.Money.Value - 20000
EnergyBar = game.ServerStorage.EnergyBar:Clone()
EnergyBar.Parent = plr.Backpack
end
end)
game.ReplicatedStorage.EnergyBarEffects.OnServerEvent:Connect(function(plr)
local Character = game.Workspace[plr.Name]
Character.Humanoid.Health = Character.Humanoid.Health + 100
Character.Humanoid.WalkSpeed = 21
wait(25)
Character.Humanoid.WalkSpeed = 16
EnergyBar:Destroy()
end)