Hello, I don’t really know if I should use “Scripting Support” on this problem so if someone suggests another tag I’ll change it.
Ok so, in my game, the character has some scripts inside the Humanoid Root Part (I’ll call it HumanoidRP for short) that activate when certain stuff happen. Let’s say, for example, the character touches poison and a script inside HumanoidRP activates and does some stuff like play a certain sound effect.
What I did to accomplish this was to place a HumanoidRP with scripts inside Starter Character Scripts, which worked great, the HumanoidRP with scripts would replace the character’s HumanoidRP.
(That’s the HumanoidRP with scripts inside of StarterCharacterScripts, which replaced the character’s HumanoidRP when playing)
But I had in mind to add custom characters to the game, so I got a custom character (It’s just a regular Roblox character with certain colors and clothing), called it StarterCharacter and placed it in StarterPlayer. The custom character already has a HumanoidRP with scripts inside of it so I removed the scripted HumanoidRP from Starter Character Scripts. But when I play the game, the scripts of the custom character’s HumanoidRP dissappear.
(Custom character with a HumanoidRP with scripts inside of it (The scripts dissappear when playing))
So I tried some stuff, first I tried placing a second HumanoidRP with scripts inside Starcer Character Scripts, I thought that it would replace the custom character’s HumanoidRP like it did when I didn’t have a custom Character, but I was wrong, instead it just made the custom character have two HumanoidRPs and break.
My second attempt to fix this was to delete the HumanoidRP from the custom character and just place a HumanoidRP on StarterCharacterScripts (And yes, I did place a Motor6D connecting the custom character’s torso and the scripted HumanoidRP). Which didn’t work and it broke like in the first attempt.
(My first attempt to fixing this)
(The custom character breaking when I tried fixing the scripts dissappearing)
I have tried looking for a solution in the forum but I couldn’t find any, so I need some help.
I need my game to have a custom character which has scripts inside its HumanoidRP.