uoryetwq

금 자동 수급

Apr 8th, 2025 (edited)
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.95 KB | None | 0 0
  1. local player = game.Players.LocalPlayer
  2.  
  3. -- 맵 이름과 좌표들
  4. local mapData = {
  5. ["🌁 중국 맵"] = {
  6. Vector3.new(-29.57, -31.31, 30.41),
  7. Vector3.new(29.28, -31.31, 29.94),
  8. Vector3.new(29.57, -31.31, -29.17),
  9. Vector3.new(-31.65, -31.31, -29.61)
  10. },
  11. ["🌾 풍차 집 맵"] = {
  12. Vector3.new(24.82, -22.31, -24.05),
  13. Vector3.new(24.27, -22.31, 23.32),
  14. Vector3.new(-23.54, -22.31, 25.06),
  15. Vector3.new(-24.38, -22.31, -22.49)
  16. },
  17. ["🏗️ 공사장 맵"] = {
  18. Vector3.new(-17.31, -31.31, 14.90),
  19. Vector3.new(-15.38, -31.31, -18.16),
  20. Vector3.new(17.41, -31.31, -14.75),
  21. Vector3.new(14.03, -31.31, 16.79)
  22. },
  23. ["🌊 바다 맵"] = {
  24. Vector3.new(-39.17, -19.31, 38.94),
  25. Vector3.new(-39.03, -19.31, -39.21),
  26. Vector3.new(39.22, -19.31, -38.25),
  27. Vector3.new(38.87, -19.31, 37.36)
  28. }
  29. }
  30.  
  31. -- 상태 추적용
  32. local teleportingMap = nil
  33.  
  34. -- UI 설정
  35. local screenGui = Instance.new("ScreenGui")
  36. screenGui.Name = "TeleportUI"
  37. screenGui.ResetOnSpawn = false
  38. screenGui.Parent = player:WaitForChild("PlayerGui")
  39.  
  40. -- 버튼 생성 함수
  41. local function createButton(name, position)
  42. local button = Instance.new("TextButton")
  43. button.Size = UDim2.new(0, 160, 0, 40)
  44. button.Position = position
  45. button.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  46. button.TextColor3 = Color3.fromRGB(0, 255, 255)
  47. button.BorderSizePixel = 0
  48. button.Text = name
  49. button.Font = Enum.Font.SourceSansBold
  50. button.TextSize = 16
  51. button.Parent = screenGui
  52.  
  53. local corner = Instance.new("UICorner")
  54. corner.CornerRadius = UDim.new(0, 8)
  55. corner.Parent = button
  56.  
  57. return button
  58. end
  59.  
  60. -- 텔레포트 기능 실행
  61. local function startTeleport(mapName, button)
  62. teleportingMap = mapName
  63. task.spawn(function()
  64. while teleportingMap == mapName do
  65. local character = player.Character
  66. if character and character:FindFirstChild("HumanoidRootPart") then
  67. for _, pos in ipairs(mapData[mapName]) do
  68. if teleportingMap ~= mapName then break end
  69. character.HumanoidRootPart.CFrame = CFrame.new(pos)
  70. task.wait(0.5)
  71. end
  72. else
  73. teleportingMap = nil
  74. end
  75. end
  76. end)
  77. end
  78.  
  79. -- 버튼 생성 및 이벤트 연결
  80. local index = 0
  81. for mapName, _ in pairs(mapData) do
  82. local button = createButton(mapName, UDim2.new(0, 20, 0, 60 + index * 50))
  83. button.MouseButton1Click:Connect(function()
  84. if teleportingMap == mapName then
  85. teleportingMap = nil
  86. button.Text = mapName
  87. else
  88. teleportingMap = nil -- 다른 맵 실행 중이면 끔
  89. button.Text = "🌀 실행완료 !"
  90. startTeleport(mapName, button)
  91. end
  92. end)
  93. index += 1
  94. end
  95.  
Advertisement
Add Comment
Please, Sign In to add comment