Einar Posted May 30 Share Posted May 30 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 Share Posted July 16 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 Wednesday at 10:22 PM Author Share Posted Wednesday at 10:22 PM 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 Wednesday at 10:59 PM Share Posted Wednesday at 10:59 PM 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 Wednesday at 11:08 PM Author Share Posted Wednesday at 11:08 PM 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 Wednesday at 11:21 PM Share Posted Wednesday at 11:21 PM 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.