I want to make stages for my obby, and on the screen I just want there to be a list of players playing and the stage they are on. Not a huge list of teams. I have tried adding obby systems in from the tool box, putting the first one called "1" at the area where I would like new players to spawn in my obby but when I test play it my player keeps falling from the sky. When I add a spawn point from the "model" section of roblox studio, I spawn where I want to and when I get to the premade checkpoints from the toolbox it says I'm on that stage but when I die I return at the main spawnpoint from "model" . Ive searched all over and whatever steps I follow from someone, I either end up spawning in the sky and falling into my obby, or i see the stages but when I die I go back to the main spawn. I'm very frustrated I don't know why adding stages is so hard! Anyone have any advice?
Yea it's pretty simple, if you know how to try and teleport a player to a certain spawn then you should know about Vector3.new
and CFrames
or else your just stealing someones script and you don't deserve help.
Anyway if you don't know about CFrames
or Vector3.new
then visit these sites;
http://wiki.roblox.com/index.php?title=API:Vector3
http://wiki.roblox.com/index.php?title=CFrame
http://wiki.roblox.com/index.php?title=Position
Anyway once your done with those then first you want to add a StringValue to the player.
I'm only helping here;
This should be a Normal Script Inside ServerScriptService
game.Players.PlayerAdded:Connect(function(plr) local SF = Instance.new('Folder') SF.Name = 'SpawnFolder' SF.Parent = plr local CS = Instance.new('StringValue') CS.Name = 'CurrentSpawn' CS.Parent = SF end)
Now you got the variables. Inside every part add a script with a .Touched function and give it a name
Example; A SCRIPT INSIDE A PART, MAKE SURE YOU NAME EACH SPAWN DIFFERENTLY
local Part = script.Parent Part.Touched:Connect(function(p) local plr = game.Players:GetPlayerFromCharacter(p.Parent) -- plr plr:WaitForChild('SpawnFolder').CurrentSpawn.Value = Part.Name end)
There after add a script saying this;
If player's humanoids health reaches 0 then teleport player to the touched part's name. Also only add the touch script to spawns that you want. And change the name to different names so they don't spawn in wrong place.
If helped plz Accept Answer
Good luck and have fun developing.