Archives
Trending
Support
Login
clear text
XML
Django
JavaScript
MATLAB
C
C++
C#
Python
SQL
Shell
Bash
Markdown
YAML
JSON
HTML
CSS
PHP
Java
Ruby
Go
Rust
Swift
Kotlin
Arduino
TypeScript
Perl
Autohotkey
Lua
SQF
R
Scala
Haskell
Groovy
Dart
Clojure
VB.NET
Objective-C
PowerShell
Bash
CoffeeScript
Verilog
local Tool = script.Parent local player = game.Players.LocalPlayer local QuantityText = player.PlayerGui:WaitForChild("BackpackGui").Frame.quantityLabel Tool:WaitForChild("stacks").Changed:Connect(function(value) QuantityText.Text = "Quantity: "..value end) QuantityText.Text = "Quantity: "..Tool.stacks.Value Tool.Activated:Connect(function() if Tool:WaitForChild("stacks") and Tool.stacks.Value > 1 then Tool.stacks.Value -= 1 player.Character.Humanoid.Health += 5 else Tool:Destroy() QuantityText.Visible = false end end) Tool.Equipped:Connect(function() QuantityText.Visible = true end) Tool.Unequipped:Connect(function() QuantityText.Visible = false end)
Mark as private (unlisted)
for 30 minutes
for 6 hours
for 1 day
for 1 week
for 1 month
for 1 year
everlasting (like CCCP)