Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local player = game.Players.LocalPlayer
- local character = player.Character
- local humanoid = character:WaitForChild("Humanoid")
- local currentcamera = workspace.CurrentCamera
- local userinputservice = game:GetService("UserInputService")
- local tweenservice = game:GetService("TweenService")
- local tweeninfo = TweenInfo.new(1,Enum.EasingStyle.Linear,Enum.EasingDirection.Out,0,false,0)
- local tween1 = tweenservice:Create(currentcamera,tweeninfo,{FieldOfView = 120})
- local tween2 = tweenservice:Create(currentcamera,tweeninfo,{FieldOfView = 70})
- local tween3 = tweenservice:Create(humanoid,tweeninfo,{WalkSpeed = 30})
- local tween4 = tweenservice:Create(humanoid,tweeninfo,{WalkSpeed = 16})
- local canPressButton = false
- userinputservice.InputBegan:Connect(function(input)
- if input.KeyCode == Enum.KeyCode.V and canPressButton == false then
- canPressButton = true
- tween1:Play()
- tween3:Play()
- wait(2)
- tween2:Play()
- tween4:Play()
- wait(1)
- canPressButton = false
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement