Sign up
Login
New
Trending
Archive
English
English
Sign up
Login
New Paste
Add Image
--// One-Click Slap Items Script local Players = game:GetService("Players") local player = Players.LocalPlayer local Backpack = player:WaitForChild("Backpack") local ReplicatedStorage = game:GetService("ReplicatedStorage") local UserInputService = game:GetService("UserInputService") local RunService = game:GetService("RunService") -- Folder where all shop items are stored local ShopItemsFolder = ReplicatedStorage:WaitForChild("Items") -- change if needed -- Keep track of granted items local GrantedItems = {} -- Grant all items local function GrantAllItems() for _, item in pairs(ShopItemsFolder:GetChildren()) do if not GrantedItems[item.Name] then local clone = item:Clone() clone.Parent = Backpack GrantedItems[item.Name] = clone end end print("All items granted!") end -- Remove all granted items local function RemoveAllItems() for _, item in pairs(GrantedItems) do if item and item.Parent then item:Destroy() end end print("All granted items removed!") end -- Restore removed items local function RestoreItems() for _, item in pairs(ShopItemsFolder:GetChildren()) do if not Backpack:FindFirstChild(item.Name) then local clone = item:Clone() clone.Parent = Backpack GrantedItems[item.Name] = clone end end print("All items restored!") end -- Function to make items act like a bat (slap) local function EnableSlapMode(tool) if not tool:IsA("Tool") then return end tool.Activated:Connect(function() local character = player.Character if not character then return end local handle = tool:FindFirstChild("Handle") or tool:FindFirstChildWhichIsA("BasePart") if not handle then return end -- Detect players in range for _, otherPlayer in pairs(Players:GetPlayers()) do if otherPlayer ~= player and otherPlayer.Character and otherPlayer.Character:FindFirstChild("HumanoidRootPart") then local distance = (handle.Position - otherPlayer.Character.HumanoidRootPart.Position).Magnitude if distance <= 5 then -- range of slap local humanoid = otherPlayer.Character:FindFirstChild("Humanoid") if humanoid then humanoid:TakeDamage(10) -- damage amount, you can change end end end end end) end -- Enable slap mode for all granted items that are tools local function ActivateAllSlapItems() for _, item in pairs(Backpack:GetChildren()) do EnableSlapMode(item) end end -- Chat commands for toggling player.Chatted:Connect(function(msg) msg = msg:lower() if msg == "!grant" then GrantAllItems() ActivateAllSlapItems() elseif msg == "!remove" then RemoveAllItems() elseif msg == "!restore" then RestoreItems() ActivateAllSlapItems() end end) -- Auto grant and slap on script start (optional) GrantAllItems() ActivateAllSlapItems()
Settings
Title :
[Optional]
Paste Folder :
[Optional]
Select
Syntax :
[Optional]
Select
Markup
CSS
JavaScript
Bash
C
C#
C++
Java
JSON
Lua
Plaintext
C-like
ABAP
ActionScript
Ada
Apache Configuration
APL
AppleScript
Arduino
ARFF
AsciiDoc
6502 Assembly
ASP.NET (C#)
AutoHotKey
AutoIt
Basic
Batch
Bison
Brainfuck
Bro
CoffeeScript
Clojure
Crystal
Content-Security-Policy
CSS Extras
D
Dart
Diff
Django/Jinja2
Docker
Eiffel
Elixir
Elm
ERB
Erlang
F#
Flow
Fortran
GEDCOM
Gherkin
Git
GLSL
GameMaker Language
Go
GraphQL
Groovy
Haml
Handlebars
Haskell
Haxe
HTTP
HTTP Public-Key-Pins
HTTP Strict-Transport-Security
IchigoJam
Icon
Inform 7
INI
IO
J
Jolie
Julia
Keyman
Kotlin
LaTeX
Less
Liquid
Lisp
LiveScript
LOLCODE
Makefile
Markdown
Markup templating
MATLAB
MEL
Mizar
Monkey
N4JS
NASM
nginx
Nim
Nix
NSIS
Objective-C
OCaml
OpenCL
Oz
PARI/GP
Parser
Pascal
Perl
PHP
PHP Extras
PL/SQL
PowerShell
Processing
Prolog
.properties
Protocol Buffers
Pug
Puppet
Pure
Python
Q (kdb+ database)
Qore
R
React JSX
React TSX
Ren'py
Reason
reST (reStructuredText)
Rip
Roboconf
Ruby
Rust
SAS
Sass (Sass)
Sass (Scss)
Scala
Scheme
Smalltalk
Smarty
SQL
Soy (Closure Template)
Stylus
Swift
TAP
Tcl
Textile
Template Toolkit 2
Twig
TypeScript
VB.Net
Velocity
Verilog
VHDL
vim
Visual Basic
WebAssembly
Wiki markup
Xeora
Xojo (REALbasic)
XQuery
YAML
HTML
Expiration :
[Optional]
Never
Self Destroy
10 Minutes
1 Hour
1 Day
1 Week
2 Weeks
1 Month
6 Months
1 Year
Status :
[Optional]
Public
Unlisted
Private (members only)
Password :
[Optional]
Description:
[Optional]
Tags:
[Optional]
Encrypt Paste
(
?
)
Create Paste
You are currently not logged in, this means you can not edit or delete anything you paste.
Sign Up
or
Login
Site Languages
×
English