Einar Posted May 30, 2024 Share Posted May 30, 2024 I am trying to write a Camera Controller script (Yes I know there's a premade one), I have gotten the movement down, and logically I should move on with turning, so I am trying to program my script to move according to the Camera Angle, I tried writing self.Camera:GetRotation(), which returned a nil value resulting in error, then found out I had to write a Boolean to go with it, upon trying self.Camera:GetRotation(true), the same error occurred, here's my current script, and a log of my error: 9 : attempt to index field 'Camera' (a nil value) Quote Link to comment Share on other sites More sharing options...
khotan Posted July 16, 2024 Share Posted July 16, 2024 I think it is incomplete your code to make a running smooth, you need to see the code with a premade as "CameraControls.lua" and then compare with your code on what it is wrong ... You need mouse as well and a setup of camera to view from world Hope that it helps you. Good luck. Quote Link to comment Share on other sites More sharing options...
Einar Posted September 4, 2024 Author Share Posted September 4, 2024 On 7/16/2024 at 7:02 AM, khotan said: I think it is incomplete your code to make a running smooth, you need to see the code with a premade as "CameraControls.lua" and then compare with your code on what it is wrong ... You need mouse as well and a setup of camera to view from world Hope that it helps you. Good luck. Where can I find CameraControls.lua? Quote Link to comment Share on other sites More sharing options...
Josh Posted September 4, 2024 Share Posted September 4, 2024 It will be in Source/Components/Player, in a new Lua project. We are also currently working on a first-person shooter template, to be released in five weeks. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Einar Posted September 4, 2024 Author Share Posted September 4, 2024 8 minutes ago, Josh said: It will be in Source/Components/Player, in a new Lua project. We are also currently working on a first-person shooter template, to be released in five weeks. Oh ****, I use leadwerks not ultra Quote Link to comment Share on other sites More sharing options...
Josh Posted September 4, 2024 Share Posted September 4, 2024 Oh sorry, in that case the script you need will be in the Scripts/Objects/Player folder. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.