Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

How can I get the coordinates of my camera?

Asked by 10 years ago

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

Log in to vote
0
Answered by 10 years ago

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)
Ad

Answer this question