uoryetwq

좌표스크립트

Oct 6th, 2025
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. -- LocalScript (StarterPlayerScripts 안에 넣으세요)
  2.  
  3. local Players = game:GetService("Players")
  4. local RunService = game:GetService("RunService")
  5.  
  6. local player = Players.LocalPlayer
  7. local gui = Instance.new("ScreenGui")
  8. gui.Name = "CoordsGui"
  9. gui.ResetOnSpawn = false
  10. gui.Parent = player:WaitForChild("PlayerGui")
  11.  
  12. local label = Instance.new("TextLabel")
  13. label.Size = UDim2.new(0, 200, 0, 60)
  14. label.Position = UDim2.new(0, 10, 0, 10)
  15. label.BackgroundTransparency = 0.3
  16. label.BackgroundColor3 = Color3.fromRGB(0,0,0)
  17. label.TextColor3 = Color3.fromRGB(255,255,255)
  18. label.Font = Enum.Font.SourceSans
  19. label.TextSize = 18
  20. label.Text = "Loading..."
  21. label.Parent = gui
  22.  
  23. RunService.RenderStepped:Connect(function()
  24. local char = player.Character
  25. if char and char:FindFirstChild("HumanoidRootPart") then
  26. local pos = char.HumanoidRootPart.Position
  27. label.Text = string.format("X: %.1f\nY: %.1f\nZ: %.1f", pos.X, pos.Y, pos.Z)
  28. end
  29. end)
  30.  
Advertisement
Add Comment
Please, Sign In to add comment