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

I can't spawn at my team's spawn. Please help?

Someone answered this not long ago, I tried their answer and at first it worked, but then my spawns started breaking again. When I team myself onto a certain team and reset myself, I respawn at the 'Civilian' spawn instead of the military spawn I want to go to. The whole setting stuff to Neutral is all done, and there's no virus scripts. This is the local script I use that potentially fixes spawns, but doesn't in my case:

local plr = game.Players.LocalPlayer

local PartToTpTo = game.Workspace.PartName game.Workspace[player.Name].HumanoidRootPart.CFrame = PartToTpTo.CFrame

Does anyone know how to fix this?

1 answer

Theres a typo on your script, line 1 says plr but line 3 says player. To fix you could

local player = game.Players.LocalPlayer

local PartToTpTo = game.Workspace.PartName game.Workspace[player.Name].HumanoidRootPart.CFrame = PartToTpTo.CFrame

16 comments

0

It still doesn't work.

0

Then your calling the wrong part name, fix PartToTpTo.

0

The script wasn't mine, and I'm not an expert at scripting, so what do you mean by fix PartToTpTo?

0

I mean the local value PartToTpTo, change partname to the place where you part is.

0

I don't know anything about what the script does. I just asked someone how to fix the spawns, I explained the problem and they said to paste that into a localscript and put it into the workspace.

0

And I've also told you how to fix it, change partname to your part in workspace.

0

Do I just change it to any part name?

0

I already told you, the name of your spawn, this is the last time i'm replying to another question that I already answered above.

0

I'm sorry it's just a bit hard to understand. Plus this script is for all the spawns, and I want people to spawn on their team's spawn and it sounds like your solution is for everyone to spawn on one spawnlocation.

0

This isn't my script, this is the script that you clearly provided and I said what is wrong with it.

0

Alrighty, I’ll recap everything. I can’t spawn at the spawn of my team. It just brings me to the normal spawn that I set to Neutral. I asked why they were broken on another post and someone gave me that script. Now I m ow

0

*Now, I know nothing about scripts, which makes people wonder why I am on this website. All I am doing is asking why they are broken and asking for a direct answer.

0

If you don't know ANYTHING about scripting, then this website isn't for you.

0

Well, my apologies then. I thought this site was made for people to ask for help about scripting.

0

It is to get help about a script YOU made, you also should be able to understand what it truly does, not just copy and paste from someone elses answer.

0

Alrighty. Do you recommend any websites that helps out with scripting in general?

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