uoryetwq

좌표 스크립트

Apr 7th, 2025
20
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. -- 스크립트를 StarterPlayerScripts에 넣으세요
  2. local player = game.Players.LocalPlayer
  3. local mouse = player:GetMouse()
  4. local screenGui = Instance.new("ScreenGui")
  5. screenGui.Parent = player.PlayerGui
  6.  
  7. local label = Instance.new("TextLabel")
  8. label.Size = UDim2.new(0, 200, 0, 50)
  9. label.Position = UDim2.new(0, 50, 0, 10) -- X좌표를 50으로 수정하여 오른쪽으로 이동
  10. label.BackgroundTransparency = 0.5
  11. label.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  12. label.TextColor3 = Color3.fromRGB(255, 255, 255)
  13. label.TextSize = 18
  14. label.Text = "X: 0, Y: 0, Z: 0"
  15. label.Parent = screenGui
  16.  
  17. local function updatePosition()
  18. local character = player.Character
  19. if character and character:FindFirstChild("HumanoidRootPart") then
  20. local position = character.HumanoidRootPart.Position
  21. label.Text = string.format("X: %.2f, Y: %.2f, Z: %.2f", position.X, position.Y, position.Z)
  22. end
  23. end
  24.  
  25. game:GetService("RunService").Heartbeat:Connect(updatePosition)
  26.  
Advertisement
Add Comment
Please, Sign In to add comment