Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Players = game:GetService("Players")
- local player = Players.LocalPlayer
- local function setupTool()
- local character = player.Character or player.CharacterAdded:Wait()
- local humanoid = character:WaitForChild("Humanoid")
- local backpack = player:WaitForChild("Backpack")
- local tool = Instance.new("Tool")
- tool.Name = "Jerk Off"
- tool.ToolTip = "Jorking it"
- tool.RequiresHandle = false
- tool.Parent = backpack
- local track
- local active = false
- local function stopAnimation()
- active = false
- if track then
- pcall(function()
- track:Stop()
- track:Destroy()
- end)
- track = nil
- end
- end
- tool.Equipped:Connect(function()
- active = true
- local success, result = xpcall(function()
- local animation = Instance.new("Animation")
- animation.AnimationId = humanoid.RigType == Enum.HumanoidRigType.R15
- and "rbxassetid://698251653"
- or "rbxassetid://72042024"
- track = humanoid:LoadAnimation(animation)
- track.Looped = true
- track:Play()
- track:AdjustSpeed(
- humanoid.RigType == Enum.HumanoidRigType.R15
- and 0.7 or 0.65
- )
- end, warn)
- if not success then
- stopAnimation()
- end
- end)
- tool.Unequipped:Connect(stopAnimation)
- humanoid.Died:Connect(stopAnimation)
- end
- setupTool()
- player.CharacterAdded:Connect(function()
- task.wait(1)
- xpcall(setupTool, warn)
- end)
Advertisement
Add Comment
Please, Sign In to add comment