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

How do I change the name of a spawn?

Im new to scripting can someone please tell me?

1 comment

0

Please explain more in-depth what you want here.

2 answers

This is a very simple concept You need to open Explorer and Properties by clicking on the view tab and clicking on Explorer and Properties Next, you need to click on the spawn and in properties, you should find Name, change it to whatever you like If you wanted to change the name with scripting here is how I would do it Hierarchy game.Workspace.Spawn.Script In the script here is what you should type

part = script.Parent -- We are declaring a variable so it would be easier to type down script.Parent
part.Name = "What you want the name to be" -- This is a string, you can change the value to whatever you want, for example: "Hi" etc.

Since you are a beginner you should click here to learn to script and build

1 comment

0

Just going to say now that your grammar is horrible and extremely hard to read. Also, your variable for script.Parent is dumb considering for one, you called it part, and also because you only need to type script.Parent once, so you're just wasting lines now.

Go to the explorer (in the view tab) and click on the spawn. Open properties (also in the view tab) and go to the name. Then change the name to what you want. If you want to change it through a script that is inside the spawn do this :

function rename()
	script.Parent.Name = "Put the name here"
end
rename()

If you want to change it with a script that isn't in the spawn, do this :

function rename()
	game.Workspace.PutCurrentNameOfSpawnHere.Name = "Put the name here"
end
rename()

Remember, no spaces when selecting the part, so if the name of the spawn is currently "Spawn Location" you should go to the explorer and rename it to something without spaces.

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