Problem With The Default Player Scripts

How would I go about disabling or getting rid of the default player scripts VIA A SCRIPT

Keep in mind that I’m trying to revamp everything so I’m not using an actual Humanoid object but a custom one (which is just a
I’m tryna make a custom character and I keep getting a bunch of wacky errors and stuff like "Health" is not a property of Humanoid and "GetState" is not a method of Humanoid

I’ve tried disabling them and deleting them and that doesn’t seem to work. So maybe if that’s not possible, how would I add properties like Health and methods like GetState to make custom humanoid object?

Also I’ll have to get back to this in the morning since it’s getting kinda late (sorry!)

Hi! While I do understand that you would like to revamp everything, a humanoid can be thought of as the species class, so if you have a character, they are a humanoid. Take for example the custom avatars: these are variations, but all are some types of humanoid. The humanoid has the properties mentioned, such as health, states, etc.

The error you are facing is because if you make a part, they have original properties. Think of properties like the genes of your body. These are things that define the object you are working with. So, in my projects, if I wanted custom functionality, I first identify what properties will I be using, then choose the object that is closest representation of how I visualize.

My advice would be taking the humanoid and manipulate the values of the humanoid. For a custom character, look at an R6 or R15 rig, and see the structure first. Of course, this will give you a general outline. I wouldn’t quite recommend disabling default properties unless you are certain you will not be using them. An example is that suppose you want to make your own inventory hot bar, then you would disable the default hot bar, then using a combination of module scripts and scripts in StarterPlayer and StarterCharacter (if needed) to create the functionality. In your specific case of Health and GetState, it seems that you have custom objects, which would not have such properties. Again, in this case it is best to use the humanoid object and connect it to a custom model. I hope this helps!

1 Like

You can add a local script called “PlayerScriptsLoader” into StarterPlayerScripts, it will stop the player module from loading. Additionally you can destroy the module in that script

1 Like

I’m just using the “Preference” (I’m pretty sure that’s what it’s called, it has a gear icon) instance.

And im just using it because it doesn’t really have any actual use

But uh yeah thanks for the explanation. I might have to find a way around this because I’m kinda determined to not use the default humanoid

I’ll keep this in mind. I have school and I can’t get on studio in a while but thanks!!

(Cant make two posts as the solution sadly)

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.