I tried to do this by using buttons and guis that appear for me but none of them will put my script from replicated storage into the characterstarterscripts.
I think you could put something like this in a local script inside a Button
1 | script.Parent.MouseButton 1 Click:Connect( function (hit) |
2 | local plr = game.Players.LocalPlayer -- this gets your specific Player |
3 | local someScript = game.ReplicatedStorage.AnswerScript -- change AnswerScript with your scripts name and you can change the varaibles name "someScript" if you want |
4 | local plrName = plr.Name -- this gets your players name |
5 |
6 | if plr.Name = = "Name" then -- type your name in the quotations or whatever Name |
7 | someScript.Parent = game.StarterPlayer.StarterCharacterScripts -- this moves the script from replicatedstorage into the startercharacterscripts |
8 | end |
9 | end ) |
put this in a local script and i'm not sure what characterstarterscripts are so i thought you mean startercharacterscripts.