Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local userinput = game:GetService("UserInputService")
- local player = game.Players.LocalPlayer
- userinput.InputBegan:connect(function(input)
- if userinput:GetFocusedTextBox() then
- return
- end
- if input.KeyCode == Enum.KeyCode.V then
- game.Players.LocalPlayer.Backpack.ServerTraits.Touch:FireServer(game.Players.LocalPlayer.Backpack.Punch, game.Players.LocalPlayer.Character.RightHand, false)
- end
- end)
- local userinput = game:GetService("UserInputService")
- local player = game.Players.LocalPlayer
- userinput.InputBegan:connect(function(input)
- if userinput:GetFocusedTextBox() then
- return
- end
- if input.KeyCode == Enum.KeyCode.V then
- Player = "LocalPlayer"
- AnimationId = "549486537"
- local Anim = Instance.new("Animation")
- Anim.AnimationId = "rbxassetid://"..AnimationId
- local k = game.Players[Player].Character.Humanoid:LoadAnimation(Anim)
- k:Play() --Play the animation
- k:AdjustSpeed(1) --Set '1' to any value you want to adjust the animation speed.
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement