After reading the Comments and having @Slerbamonsteri along with @iSentrie and @Tristen giving me suggestions, along with tips and how to Optimize Scripts, after a couple of hours of learning and trying it in other scripts, it’s done and it’s fully optimized, Loops are usually sleep, it’s usually at 0.00 resmon unless the script is being used.
[Date: August 31 2022.] Reminder: Another Update is Out, Forced First Person When Aiming/Shooting On A Bike Added.
Hey, this is a remake of my First Ever script “Forced First Person When Aiming/Shooting Inside A Vehicle”. The Remake provides more features and better Optimization.
Note: Im Still Learning, Feedback and Suggestion’s Would be much appreciated! Feel Free to Inform me of any type of bugs.
Features:
Config option for forcing first person specifically when Aiming/Shooting inside of a vehicle.
Config Option for Forced first person Aiming/Shooting.
Config Option for Forced First person if the player is driving a vehicle. (Only the Driver, not the other players.)
Config Option for Forced First Person When Aiming/Shooting On A Bike Added.
Not here to bash you, but there are multiple scripts like this, offering those features you have mentioned as upcoming, and probably some more. Also there is some more optimization in your code that can, and should be done
Edit: for example, both the loops are running always, no sleeps.
Yeah, i’m pretty new to Scripting, i just made this due to someone Replying to my old Script and Requesting them, i don’t really look at scripts on the forum so i really didn’t know.
What would you suggest to be different in the code, if you wouldn’t mind me asking.
Thank you both of you guys, much love, after a couple of changes made the script is now fully optimized, just adding the new features with Optimization and ill update it.