uoryetwq

speed script

Mar 13th, 2025
294
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. local Players = game:GetService("Players")
  2. local UserInputService = game:GetService("UserInputService")
  3.  
  4. local Player = Players.LocalPlayer
  5. local WalkSpeedValue = 50 -- 원하는 속도 값 (기본값: 50)
  6.  
  7. -- 속도 변경 함수
  8. local function SetSpeed()
  9. if Player.Character then
  10. local humanoid = Player.Character:FindFirstChildOfClass("Humanoid")
  11. if humanoid then
  12. humanoid.WalkSpeed = WalkSpeedValue
  13. end
  14. end
  15. end
  16.  
  17. -- 캐릭터 생성될 때 속도 적용
  18. if Player.Character then
  19. SetSpeed()
  20. end
  21. Player.CharacterAdded:Connect(SetSpeed)
  22.  
  23. -- 모든 키 입력 감지 (Shift 포함!)
  24. UserInputService.InputBegan:Connect(function(input, gameProcessed)
  25. if not gameProcessed then
  26. SetSpeed()
  27. end
  28. end)
  29.  
  30. UserInputService.InputEnded:Connect(function(input, gameProcessed)
  31. if not gameProcessed then
  32. SetSpeed()
  33. end
  34. end)
  35.  
Advertisement
Add Comment
Please, Sign In to add comment