Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How can I get the coordinates of my camera?

Alright, so I am looking at an object and I want to get the coordinates of my camera(of where I am looking at) - how can I do this?

1 answer

I believe it would be like this: (In a local script of course)

if game.Players.LocalPlayer.Character ~= nil then
local x = game.Players.LocalPlayer.Character
local parts = Instance.new("Part")
parts.Parent = game.Workspace
parts.CanCollide = false
parts.Postion = Vector3.new(x.Head.Position)

This discussion is preserved as it was. New answers, comments, and votes are closed.