How would i replace one of the default starter player scripts with roblox filling out the missing stuff

i want to replace the control module and let roblox fill out the rest of the scripts (so that things are ok if roblox updates any of them)
image

expecting this
image
getting this instead
image

or is this not possible to do & i have to manually update them all

You can Copy and Paste the scripts into Studio, make changes, and when you are done, put it in the correct place and roblox will fill the missing items

I may be wrong about this as i never do this

the thing is that roblox doesn’t
the “getting this instead” picture is during a play test; all of the other scripts are missing

You’ll have to write a separate script for this, basically don’t keep those scripts starting in StarterPlayer, instead when playing, load the new scripts and move all the descendants of the script your replacing to the new script

would replacing the player scripts loader work things out
(putting the custom control module in there, making the loader replace the one in the player module, and only after that loading all things in)

1 Like

the default player scripts loader plays instantly & shuffling with the module does nothing after it loads in so i wouldn’t have the time to replace things in it

That’s not what I meant, when the player loads in, it’s fine that it has the normal scripts, but now you want to run a script that will look in the Players PlayerScripts and find all the scripts that are named the same as a script that’s in (let’s say) a replicated storage folder and then clone that script and place it in the PlayerScripts then find all descendants of the original script and parent them to the new script and finally delete the old script.

In theory this should work, you should test it and I will aswell in a few minutes/when I can

had to throw things around with :GetChildren() and :Destroy() but this definitely worked
image

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