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
4 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 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago

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

script.Parent.MouseButton1Click:Connect(function(hit)
local plr = game.Players.LocalPlayer -- this gets your specific Player
local someScript = game.ReplicatedStorage.AnswerScript -- change AnswerScript with your scripts name and you can change the varaibles name "someScript" if you want
local plrName = plr.Name -- this gets your players name  

 if plr.Name == "Name" then -- type your name in the quotations or whatever Name
    someScript.Parent = game.StarterPlayer.StarterCharacterScripts -- this moves the script from replicatedstorage into the startercharacterscripts
end       
 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