#Shop exit button not working

1 messages · Page 1 of 1 (latest)

subtle sundial
#

Hello. I am trying to create a button that switches back to the players camera and closes the shop UI after the shop exit button is clicked on. However, this is not working.

cloud vapor
#

set the camera's focus to the player's humanoid

#

also the cframe you tried to set doesnt work because game.Workspace.Camera isnt a cframe

subtle sundial
#

So the CFrame would be game.Workspace.Humanoid then?

worldly flaxBOT
#

studio** You are now Level 2! **studio

winter tiger
#

It should be Camera.CFrame

#

But if you want the player then yeah humanoid.CFrame or HumanoidRootPart.CFrame

subtle sundial
#

it still seems to be not working

#

The button does not activate at all, however, the inventory button works for some reason?

cloud vapor
#

well is there any errors in the output

subtle sundial
#

its refering to this line of code, but that isnt the issue im trying to solve

worldly flaxBOT
#

studio** You are now Level 1! **studio

winter tiger
#

Not a frame

subtle sundial
#

oh my god, fixing that fixed the camera issue

#

thank you