How to change internal scripts from Studio?

Have you looked at these resources?

https://developer.roblox.com/en-us/api-reference/class/CoreScript