Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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.

1 comment

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?

1 answer

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.

This discussion is preserved as it was. New answers, comments, and votes are closed.