--================================================================= --= Baldi basics plus 0.1 movement by euibn3371 --= this script was made for fun --= i can make it into loadstring one but idk if ok or no --================================================================= local RunService = game:GetService("RunService") local Players = game:GetService("Players") local UserInputService = game:GetService("UserInputService") local player = Players.LocalPlayer local camera = workspace.CurrentCamera local playerGui = player:WaitForChild("PlayerGui") if playerGui:FindFirstChild("StaminaUI") then playerGui.StaminaUI:Destroy() end local screenGui = Instance.new("ScreenGui", playerGui) screenGui.Name = "StaminaUI" screenGui.ResetOnSpawn = false local redBar = Instance.new("Frame", screenGui) redBar.Name = "RedBar" redBar.Size = UDim2.new(0, 250, 0, 20) redBar.Position = UDim2.new(0.02, 0, 0.85, 0) redBar.BackgroundColor3 = Color3.fromRGB(255, 0, 0) redBar.BorderSizePixel = 0 local greenBar = Instance.new("Frame", redBar) greenBar.Name = "GreenBar" greenBar.Size = UDim2.new(1, 0, 1, 0) greenBar.BackgroundColor3 = Color3.fromRGB(0, 255, 0) greenBar.BorderSizePixel = 0 local restText = Instance.new("TextLabel", screenGui) restText.Name = "RestText" restText.Size = UDim2.new(0, 300, 0, 50) restText.Position = UDim2.new(0.02, 0, 0.85, -50) restText.BackgroundTransparency = 1 restText.Text = "YOU NEED REST!" restText.TextColor3 = Color3.fromRGB(0, 0, 0) restText.Font = Enum.Font.SourceSansBold restText.TextSize = 40 restText.Visible = false restText.TextXAlignment = Enum.TextXAlignment.Left ---========================================== --=Zesty bar ---========================================== local tool = Instance.new("Tool") tool.Name = "Zesty bar" -- the old name was Chocolate bar (before posting it) tool.ToolTip = "Zesty bar" tool.RequiresHandle = false tool.Parent = player.Backpack local isBoosted = false local currentStamina = 100 tool.Activated:Connect(function() if isBoosted then return end isBoosted = true currentStamina = 200 --+ i done with those bugs dude +-- tool.Parent = nil task.wait(40) tool.Parent = player.Backpack end) ---========================================== --= i about a tool right there ^^^ but still ---========================================== local function forceTPose(char) local hum = char:WaitForChild("Humanoid") hum.JumpPower = 0 local animate = char:FindFirstChild("Animate") if animate then animate:Destroy() end local animator = hum:FindFirstChild("Animator") if animator then animator:Destroy() end end player.CharacterAdded:Connect(forceTPose) if player.Character then forceTPose(player.Character) end local isRunning = false local isExhausted = false local standStillTime = 0 local DRAIN_RATE = 20 local REGEN_RATE = 15 UserInputService.InputBegan:Connect(function(input, gp) if gp then return end if input.KeyCode == Enum.KeyCode.LeftShift or input.KeyCode == Enum.KeyCode.RightShift then isRunning = true end end) UserInputService.InputEnded:Connect(function(input, gp) if gp then return end if input.KeyCode == Enum.KeyCode.LeftShift or input.KeyCode == Enum.KeyCode.RightShift then isRunning = false end end) RunService:BindToRenderStep("StaminaLogic", Enum.RenderPriority.Camera.Value + 1, function(dt) player.CameraMode = Enum.CameraMode.LockFirstPerson local char = player.Character if not char then return end local hum = char:FindFirstChild("Humanoid") if not hum or not hum.RootPart then return end local animator = hum:FindFirstChild("Animator") if animator then animator:Destroy() end local _, yaw, _ = camera.CFrame:ToOrientation() camera.CFrame = CFrame.new(camera.CFrame.Position) * CFrame.fromOrientation(0, yaw, 0) if isBoosted and currentStamina <= 100 then isBoosted = false currentStamina = 100 end local isMoving = hum.MoveDirection.Magnitude > 0 if isMoving then standStillTime = 0 if isRunning and not isExhausted then local cap = isBoosted and 200 or 100 currentStamina = math.clamp(currentStamina - (DRAIN_RATE * dt), 0, cap) hum.WalkSpeed = 28 if currentStamina <= 0 then isExhausted = true end else hum.WalkSpeed = isExhausted and 8 or 16 end else standStillTime = standStillTime + dt if standStillTime >= 0.1 then isExhausted = false end -- br br patapim if not isBoosted then currentStamina = math.clamp(currentStamina + (REGEN_RATE * dt), 0, 100) end hum.WalkSpeed = 16 end greenBar.Size = UDim2.new(math.min(currentStamina/100, 1), 0, 1, 0) restText.Visible = isExhausted end)