--[=[ /\ .__ __ __ ________________ ______ ______ / / ___________ ____ |__|/ |_ ___.__. _____ _____/ |_ ___________ / ___\_ __ \__ \ / ___// ___/ / / / ___/\__ \ / \| \ __< | | / \_/ __ \ __\/ __ \_ __ \ / /_/ > | \// __ \_\___ \ \___ \ / / \___ \ / __ \| | \ || | \___ | | Y Y \ ___/| | \ ___/| | \/ \___ /|__| (____ /____ >____ > / / /____ >(____ /___| /__||__| / ____| |__|_| /\___ >__| \___ >__| /_____/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ v1.0 erlhender !TW: Code for the bar is AI-Generated, it's marked if you looked into the code.! d888b db db d888888b .d888b. db db db .d8b. 88' Y8b 88 88 `88' VP `8D 88 88 88 d8' `8b 88 88 88 88 odD' 88 88 88 88ooo88 88 ooo 88 88 88 .88' 88 88 88 88~~~88 88. ~8~ 88b d88 .88. j88. 88booo. 88b d88 88 88 @uniquadev Y888P ~Y8888P' Y888888P 888888D Y88888P ~Y8888P' YP YP CONVERTER ]=] -- Instances: 7 | Scripts: 1 | Modules: 0 | Tags: 0 local G2L = {}; -- StarterGui.touch grass G2L["1"] = Instance.new("ScreenGui", game:GetService("Players").LocalPlayer:WaitForChild("PlayerGui")); G2L["1"]["Name"] = [[touch grass]]; G2L["1"]["ZIndexBehavior"] = Enum.ZIndexBehavior.Sibling; -- StarterGui.touch grass.TextLabel G2L["2"] = Instance.new("TextLabel", G2L["1"]); G2L["2"]["TextWrapped"] = true; G2L["2"]["BorderSizePixel"] = 0; G2L["2"]["TextSize"] = 28; G2L["2"]["TextXAlignment"] = Enum.TextXAlignment.Left; G2L["2"]["BackgroundColor3"] = Color3.fromRGB(0, 48, 0); G2L["2"]["FontFace"] = Font.new([[rbxasset://fonts/families/AccanthisADFStd.json]], Enum.FontWeight.Regular, Enum.FontStyle.Italic); G2L["2"]["TextColor3"] = Color3.fromRGB(255, 255, 255); G2L["2"]["Size"] = UDim2.new(0.47609, 0, 0.08435, 0); G2L["2"]["BorderColor3"] = Color3.fromRGB(0, 0, 0); G2L["2"]["Text"] = [[Grass/Sanity-o-meter]]; G2L["2"]["Position"] = UDim2.new(0.0087, 0, 0.89406, 0); -- StarterGui.touch grass.TextLabel.UIStroke G2L["3"] = Instance.new("UIStroke", G2L["2"]); G2L["3"]["Thickness"] = 2; G2L["3"]["Color"] = Color3.fromRGB(107, 196, 127); G2L["3"]["ApplyStrokeMode"] = Enum.ApplyStrokeMode.Border; -- StarterGui.touch grass.TextLabel.Frame G2L["4"] = Instance.new("Frame", G2L["2"]); G2L["4"]["BorderSizePixel"] = 0; G2L["4"]["BackgroundColor3"] = Color3.fromRGB(0, 255, 0); G2L["4"]["AnchorPoint"] = Vector2.new(0, 0.5); G2L["4"]["Size"] = UDim2.new(0.43379, 0, 0.76, 0); G2L["4"]["Position"] = UDim2.new(0.54795, 0, 0.5, 0); G2L["4"]["BorderColor3"] = Color3.fromRGB(0, 0, 0); -- StarterGui.touch grass.TextLabel.Frame.UIGradient G2L["5"] = Instance.new("UIGradient", G2L["4"]); G2L["5"]["Color"] = ColorSequence.new{ColorSequenceKeypoint.new(0.000, Color3.fromRGB(0, 110, 194)),ColorSequenceKeypoint.new(1.000, Color3.fromRGB(255, 255, 255))}; -- StarterGui.touch grass.TextLabel.Frame.UICorner G2L["6"] = Instance.new("UICorner", G2L["4"]); -- StarterGui.touch grass.TextLabel.Frame.LocalScript G2L["7"] = Instance.new("LocalScript", G2L["4"]); -- StarterGui.touch grass.TextLabel.Frame.LocalScript local function C_7() local script = G2L["7"]; --[[ ================================================== sys ==================================================]] local function RQS() return game:GetService("ReplicatedStorage") :WaitForChild("HDAdminHDClient") :WaitForChild("Signals") :WaitForChild("RequestCommandSilent") end local bar=script.Parent local plr=game:GetService("Players").LocalPlayer local hasachance=true local maxsanity=100 local curr=maxsanity local ts=game:GetService("TweenService") --[[ ================================================== update bar ==================================================]] local MAX_X_SCALE = 0.434 local FIXED_Y_SCALE = 0.76 -- this was made with AI(the part below me) yes yes.. i suck at calculations! local function updateBar(newValue) curr = math.clamp(newValue, 0, maxsanity) -- Calculate percentage (0 to 1) local healthRatio = curr / maxsanity -- Multiply the ratio by your custom max X scale (0.434) local targetXScale = healthRatio * MAX_X_SCALE -- Create the corrected size local targetSize = UDim2.new(targetXScale, 0, FIXED_Y_SCALE, 0) -- Smoothly animate local tweenInfo = TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out) local tween = ts:Create(script.Parent, tweenInfo, {Size = targetSize}) tween:Play() end -- OK this is now human i think u can tell by my coding style local function notify(msg) local stgui=game:GetService("StarterGui") stgui:SetCore("SendNotification",{ Title="Grass/Sanity-o-meter", Message=msg, Icon="rbxassetid://7873533047", Duration=5 }) end local function serverpenalty() local RQ=RQS() if RQ then RQ:InvokeServer(";m I HAVEN'T TOUCHED GRASS SO I DIED!! LOOK AT ME!") end end --[[ ================================================== update sanity ==================================================]] task.spawn(function() while true do task.wait(0.01) local char=plr.Character if plr then if hasachance==true then local h=char:FindFirstChildOfClass("Humanoid") if h and h.Health>0 then if h.FloorMaterial==Enum.Material.Grass then updateBar(curr+0.2) else updateBar(curr-0.4) end if curr<=0 then h.Health-=0.3 -- nah boii forcefield is NOT saving ur goofy arse end else hasachance=false serverpenalty() notify("l-le son..") end end end end end) end; task.spawn(C_7); return G2L["1"], require;