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

game.Workspace.CurrentCamera.CFrame returns my player?

Asked by 2 years ago
Edited 2 years ago

i'm scripting a gun for my game and it has a local script that fires a remote event with game.Workspace.CurrentCamera.CFrame as the parameter which is processed serverside with :ToEulerAnglesXYZ(Vector3).Unit before being used in a raycast, but i keep getting the error ToEulerAnglesXYZ is not a valid member of Player "Players.[my username]". oddly enough i remember having it work properly after manually running the command print(game.Workspace.CurrentCamera.CFrame)

0
i've tried several different approaches but all of them suggest that when i try to get anything derived from game.Workspace.CurrentCamera.CFrame it just returns my player instance TheDude646 72 — 2y
0
First parameter when sending a remote event is Player instance SuperPuiu 497 — 2y

Answer this question