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

Camera Changed event not firing???

Asked by 5 years ago

Hello community, I have an issue in one component of my code where the camera changed event doesn't fire somehow even though the properties of it(CFrame) has changed. Let me paste that part of code to depict what i wrote in my script

local camera = game.Workspace.CurrentCamera


camera:GetPropertyChangedSignal("CFrame").Change:connect(function(cframe)-- fires when the player's camer move
    print ("Test") 

end)

However when I test the game the camera changed function doesn't fire for some reason(the output won't print test) whenever I move my player's camera around. Is there any way to circumvent/solve this?

Any help is greatly appreciated

0
I believe the event is 'Changed', not 'Change'. Abandion 118 — 5y
0
Thanks for spotting the typo. However, even though I fix it the function is still not working( won't print test ). Maybe the function I use is not the right one for my intent? aplah12345 4 — 5y

Answer this question