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

How do I change the name of a spawn?

Asked by 7 years ago

Im new to scripting can someone please tell me?

0
Please explain more in-depth what you want here. hiimgoodpack 2009 — 7y

2 answers

Log in to vote
0
Answered by 7 years ago

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

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. LordOfLuxury 84 — 7y
Ad
Log in to vote
0
Answered by
Viking359 161
7 years ago

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.

Answer this question