iDertus7
(Ignosce)
#1
Hello.
I’m doing a script where a part looks at the player camera.
To achieve this, I use the CFrame.lookAt
line.
However, for some reason… The camera does not have a Position property.
This outputs the error “Position is not a valid member of “workspace.Camera””
Any reason why it doesn’t identify it? At the start of the script, it waits until game is loaded.
I even tried local camposition = camera:WaitForChild("Position")
, but it resulted in an infinite yield.
Korpsii
(FN Herstal)
#2
Camera does not have a Position Property, what they do have is CFrame Property. To get the position it’s really simple.
Camera.CFrame.Position
1 Like
iDertus7
(Ignosce)
#3
Shoot I just realized it right before you sent the message while looking at the properties.
I’ll mark this as the solution still!
1 Like
system
(system)
Closed
#4
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.