Advertisement
RobloxCreator

Untitled

Sep 23rd, 2019
3,713
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. --------- SCRIPT ---------
  2. local Mos = game.Players.LocalPlayer:GetMouse()
  3.  
  4. --Если нажата
  5. Mos.KeyDown:connect(function(key)
  6. if key:lower() == string.char(48) then
  7. game.Workspace.Camera.FieldOfView = game.Workspace.Camera.FieldOfView + 1.6
  8. local Player1 = game.Players.LocalPlayer.Character.Humanoid
  9. if Player1 then
  10. Player1.WalkSpeed = 25
  11. end
  12. end
  13. end)
  14.  
  15. --Если отпущена
  16. Mos.KeyUp:connect(function(key)
  17. if key:lower() == string.char(48) then --Если нажата
  18. game.Workspace.Camera.FieldOfView = game.Workspace.Camera.FieldOfView - 1.6
  19. local Player1 = game.Players.LocalPlayer.Character.Humanoid
  20. if Player1 then
  21. Player1.WalkSpeed = 16
  22. end
  23. end
  24. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement