Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- 스크립트를 StarterPlayerScripts에 넣으세요
- local player = game.Players.LocalPlayer
- local mouse = player:GetMouse()
- local screenGui = Instance.new("ScreenGui")
- screenGui.Parent = player.PlayerGui
- local label = Instance.new("TextLabel")
- label.Size = UDim2.new(0, 200, 0, 50)
- label.Position = UDim2.new(0, 50, 0, 10) -- X좌표를 50으로 수정하여 오른쪽으로 이동
- label.BackgroundTransparency = 0.5
- label.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- label.TextColor3 = Color3.fromRGB(255, 255, 255)
- label.TextSize = 18
- label.Text = "X: 0, Y: 0, Z: 0"
- label.Parent = screenGui
- local function updatePosition()
- local character = player.Character
- if character and character:FindFirstChild("HumanoidRootPart") then
- local position = character.HumanoidRootPart.Position
- label.Text = string.format("X: %.2f, Y: %.2f, Z: %.2f", position.X, position.Y, position.Z)
- end
- end
- game:GetService("RunService").Heartbeat:Connect(updatePosition)
Advertisement
Add Comment
Please, Sign In to add comment