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

I can't spawn at my team's spawn. What's happening?

Asked by 4 years ago

So this has happened many times now. Whenever I team myself onto another team and reset, it takes me to the spawn point newcomers spawn at. Basically, my game is a military border game, and when I team myself onto the Armed Forces, it spawns me at the civilian spawn and not the Armed Forces spawn. The citizen spawn is the neutral spawn and there are no virus scripts. The team colour in the SpawnLocation is set to the same colour as the team. For a millisecond it takes me to the correct spawn, and them immediately TPs me back. Does anyone know how to fix this?

0
You could always just, set the position of the player? BradNewTypical 232 — 4y

2 answers

Log in to vote
0
Answered by 4 years ago

I don't know how to fix it since you didn't show your script, but you can change the character's CFrame to the part in the spawn just like this:

local plr = game.Players.LocalPlayer
local PartToTpTo = game.Workspace.PartName
game.Workspace[player.Name].HumanoidRootPart.CFrame = PartToTpTo.CFrame
0
Do put that into a LocalScript? If so, where do I put it? WillemVI 7 — 4y
0
Yes, it's just an example of what to do, I'd personally recommend making it a remote event and then firing it when the play button is clicked or when the player dies. User#32819 0 — 4y
0
It worked! Thank you so much I have had this issue for ages. WillemVI 7 — 4y
Ad
Log in to vote
0
Answered by 4 years ago

youu ain't gonna provide any scripts I ain't gonna provide any scripts in yo answer. I'm pretty sure this a simple fix cuz i did use the roblox teams before. I think all ya gotta do is set neutral to false. If it immediately takes you back then its probably a script that changes it. Maybe it's a plugin or a virus but I doubt it. TL;DR change neutral to false

Answer this question