Advertisement
JW2

Run

JW2
Jan 7th, 2023 (edited)
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. local player = game.Players.LocalPlayer
  2. local character = player.Character
  3. local humanoid = character:WaitForChild("Humanoid")
  4. local currentcamera = workspace.CurrentCamera
  5. local userinputservice = game:GetService("UserInputService")
  6. local tweenservice = game:GetService("TweenService")
  7. local tweeninfo = TweenInfo.new(1,Enum.EasingStyle.Linear,Enum.EasingDirection.Out,0,false,0)
  8. local tween1 = tweenservice:Create(currentcamera,tweeninfo,{FieldOfView = 120})
  9. local tween2 = tweenservice:Create(currentcamera,tweeninfo,{FieldOfView = 70})
  10. local tween3 = tweenservice:Create(humanoid,tweeninfo,{WalkSpeed = 30})
  11. local tween4 = tweenservice:Create(humanoid,tweeninfo,{WalkSpeed = 16})
  12.  
  13. local canPressButton = false
  14.  
  15. userinputservice.InputBegan:Connect(function(input)
  16. if input.KeyCode == Enum.KeyCode.V and canPressButton == false then
  17. canPressButton = true
  18. tween1:Play()
  19. tween3:Play()
  20. wait(2)
  21. tween2:Play()
  22. tween4:Play()
  23. wait(1)
  24. canPressButton = false
  25. end
  26. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement