Just the title. I don’t know how to make it currently I’m using Context Action Services for binding the buttons, so far I tried to set the player camera to the player mouse (touch in mobile) but doesn’t work.
Just elaborating on that. Active is a property of GUI Objects that allows you to interact with the 3D Workspace, hence you would be able to move your camera while holding down a button. Essentially, it bleeds input through the Button, as well as registering the button as well.
How to&Answers:
If you are using a Touch device (i.e. a phone), this should work: Set the Camera property of the Player to a Camera object. Create a ScreenGui and a Frame inside it. Set the Frame’s BackgroundTransparency to 1 . Set the Frame’s Size to the size of the screen. Set the Frame’s AnchorPoint to 0.5, 0.5 and move it to the center of the screen. Set the Frame’s Position to UDim2.new(0.5, 0, 0.5, 0) . Set the Frame’s ZIndexBehavior to “Sibling”. Inside the Frame, create a TextButton. Set the TextButton’s ZIndexBehavior to “Sibling”. Set the TextButton’s Size to the size of the frame. Set the TextButton’s AnchorPoint to 0.5, 0.5 and move it to the center of the frame. Set the TextButton’s Position to UDim2.new(0.5, 0, 0.5, 0) . Set the TextButton’s Text to “Camera”. Set the TextButton’s FontSize to 72 (or whatever you want). Set the TextButton’s BackgroundTransparency to 1 . Set the TextButton’s ZIndexBehavior to “Sibling”. In the TextButton’s MouseButton1Click event, put the following code: local UIS = game:GetService(“UserInputService”) local mouse = game.Players.LocalPlayer:GetMouse() if UIS.TouchEnabled then mouse.TargetFilter = Workspace – Remove this line if you want the player to be able to press the button to end the camera control. mouse.Button1Down:Connect(function() mouse.TargetFilter = nil local camPos = mouse.Hit.p + Vector3.new(0, 10, 0) mouse.TargetFilter = Workspace mouse.CameraOffset = camPos - mouse.Hit.p end) mouse.Button1Up:Connect(function() mouse.TargetFilter = nil end) end So what this does is, if you’re on a touch device (i.e. a phone), the script will tell the local