Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local player = game.Players.LocalPlayer
- local backpack = player:WaitForChild("Backpack")
- local function clearBackpack()
- for _, item in pairs(backpack:GetChildren()) do
- item:Destroy()
- end
- end
- wait(0.5) --JUST IN CASE
- clearBackpack()
- wait(3) --to make sure it doesnt delete the slap attack
- local tool = Instance.new("Tool")
- tool.Name = "Slap"
- tool.RequiresHandle = false
- tool.CanBeDropped = false
- tool.Parent = backpack
- tool.Activated:Connect(function()
- local character = player.Character or player.CharacterAdded:Wait()
- local humanoid = character:WaitForChild("Humanoid")
- local animation = Instance.new("Animation")
- animation.AnimationId = "rbxassetid://13491635433"
- local animTrack = humanoid:LoadAnimation(animation)
- animTrack:Play()
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement