uoryetwq

풍차,집 컨셉 맵 금 자동수급

Apr 7th, 2025
23
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.51 KB | None | 0 0
  1. -- 스크립트를 StarterPlayerScripts에 넣으세요
  2. local player = game.Players.LocalPlayer
  3. local UserInputService = game:GetService("UserInputService")
  4.  
  5. -- 텔레포트할 좌표들 (새로운 좌표로 변경)
  6. local teleportPositions = {
  7. Vector3.new(24.82, -22.31, -24.05),
  8. Vector3.new(24.27, -22.31, 23.32),
  9. Vector3.new(-23.54, -22.31, 25.06),
  10. Vector3.new(-24.38, -22.31, -22.49)
  11. }
  12.  
  13. local isTeleporting = false -- 텔레포트 상태를 추적하는 변수
  14.  
  15. -- T 키를 눌렀을 때 텔레포트 시작/중지
  16. UserInputService.InputBegan:Connect(function(input, gameProcessed)
  17. if gameProcessed then return end -- 게임에서 이미 처리된 입력은 무시
  18.  
  19. if input.UserInputType == Enum.UserInputType.Keyboard and input.KeyCode == Enum.KeyCode.T then
  20. local character = player.Character
  21. if character and character:FindFirstChild("HumanoidRootPart") then
  22. if isTeleporting then
  23. -- 텔레포트 중지
  24. isTeleporting = false
  25. else
  26. -- 텔레포트 시작
  27. isTeleporting = true
  28. -- 무한 반복하여 텔레포트
  29. while isTeleporting do
  30. for _, position in ipairs(teleportPositions) do
  31. character.HumanoidRootPart.CFrame = CFrame.new(position)
  32. wait(0.5) -- 0.5초 간격으로 텔레포트
  33. end
  34. end
  35. end
  36. end
  37. end
  38. end)
  39.  
Advertisement
Add Comment
Please, Sign In to add comment