Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do you make a script that goes into characterstarterscripts and is for a specific person?

Asked by
H_242 0
5 years ago

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.

0
What are you making first of all? An Admin GUI? A function that could only be activated by a specific person using a hotkey or similar things? SnowieDev 171 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago

I think you could put something like this in a local script inside a Button

1script.Parent.MouseButton1Click:Connect(function(hit)
2local plr = game.Players.LocalPlayer -- this gets your specific Player
3local someScript = game.ReplicatedStorage.AnswerScript -- change AnswerScript with your scripts name and you can change the varaibles name "someScript" if you want
4local 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
8end      
9 end)

put this in a local script and i'm not sure what characterstarterscripts are so i thought you mean startercharacterscripts.

Ad

Answer this question