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

2 comments

0

I believe the event is 'Changed', not 'Change'.

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?