generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Need help with obby

Previous Thread :: Next Thread 
bolony21 is not online. bolony21
Joined: 01 May 2014
Total Posts: 219
30 Apr 2016 02:39 PM
I am need of help on how to make teams/obby levels
I have seen some old tutorials but when i tried changing the teams on the obby theme
It didnt work and when i spawned it showed no teams
Please help

I have made a thread like this but it was in the wrong section
Report Abuse
Mr_OT is not online. Mr_OT
Joined: 05 Feb 2012
Total Posts: 11315
30 Apr 2016 02:40 PM
Have you tried googling this?
Report Abuse
bolony21 is not online. bolony21
Joined: 01 May 2014
Total Posts: 219
30 Apr 2016 03:45 PM
Google might give outdated data and whats wrong with asking the forums for some help?
Report Abuse
spartan6241 is not online. spartan6241
Joined: 15 Jun 2014
Total Posts: 793
30 Apr 2016 03:48 PM
I'm pretty sure that ROBLOX has a obby template that could help.
Report Abuse
bolony21 is not online. bolony21
Joined: 01 May 2014
Total Posts: 219
30 Apr 2016 04:08 PM
Jeez no need to be harse im new here
Report Abuse
mytouch is not online. mytouch
Joined: 31 Oct 2010
Total Posts: 83
30 Apr 2016 04:15 PM
1. look up teams in free models
2. click the thing that says teams
3. go to explorer tab and scroll down to teams
4. right click on teams and look for the soccer ball labeled 'team'
5. insert as many teams as you want
6. set teams to a color corresponding to a spawn point color. (also add in more spawns for this step)
7. build the obby and move the spawns in order to each level

*you can also rename the teams to the name of the level

also i think you might need a leaderboard but im not sure, just get a team leaderboard from free models

Report Abuse
mytouch is not online. mytouch
Joined: 31 Oct 2010
Total Posts: 83
30 Apr 2016 04:16 PM
nevermind you dont need a leader board
Report Abuse
KarthonTulliusEnnius is not online. KarthonTulliusEnnius
Joined: 30 May 2010
Total Posts: 230
30 Apr 2016 04:24 PM
Sorry that they're being rude, I'll help you out..

The way I did it was I created an IntValue (basically just a thing that holds a value) inside of every player that joins the game.

When the player spawns, it checks for a spawn point with the same name as their level, and when they touch a spawn point, it changes their IntValue.

So if I step on level 3 spawnpoint, it finds my IntValue, and it changes the value to 3.

Then in another script, whenever I die it checks what level I am in by looking at the IntValue in my player. So it sees that my IntValue is 3 and it checks for a spawnpoint in the game with the name '3', and it teleports me to that spawnpoint, making it appear like I spawned there, the player won't be able to tell because the script does it nearly instantly.

Here's how I did it...
I made this script that gives everyone the IntValue when they join the game...

game.Players.PlayerAdded:connect(function(player)
local stats = Instance.new("Model", player)
stats.Name = "leaderstats"

local level = Instance.new("IntValue", stats)
level.Name = "Stage"
level.Value = 1
end)

And another script that makes them spawn at whatever their value is...

game.Players.PlayerAdded:connect(function(player)
player.CharacterAdded:connect(function(character)
wait(.4)
local stage = player.leaderstats.Stage.Value
local x = game.Workspace[stage].Position.x
local y = game.Workspace[stage].Position.y
local z = game.Workspace[stage].Position.z
character.Torso.CFrame = CFrame.new(Vector3.new(x, y+3, z))
end)
end)

Inside of every spawnpoint I had this script..

function onTouched(part)
local plrname = part.Parent.Name
if part.Parent:findFirstChild("Humanoid") and (script.Parent.Name)-2 <= game.Players[plrname].leaderstats.Stage.Value and game.Workspace[plrname].Humanoid.Health>0 then
game.Players[plrname].leaderstats.Stage.Value = script.Parent.Name
end
end

script.Parent.Touched:connect(onTouched)

--[===[ The if statement in there checks to make sure that the thing that touched it was a player not another brick, it checks to make sure the person is within 2 stages of the stage they touched, so they don't accidentally go back like 20 stages, and it also checks to make sure they're alive when they touch it, and if those are all met, then it sets their value to the new value.
]===]


Every spawnpoint has to be named whatever stage it is, and has to be inside of workspace, NOT INSIDE OF A MODEL, or this will not work.

This is how I did it, if you have any further questions, PM me.
Report Abuse
milosmello is not online. milosmello
Joined: 25 Oct 2012
Total Posts: 1656
30 Apr 2016 04:34 PM
add in a spawn and change the team color it should work ;)


Report Abuse
KarthonTulliusEnnius is not online. KarthonTulliusEnnius
Joined: 30 May 2010
Total Posts: 230
30 Apr 2016 04:37 PM
The problem with the team system roblox has is with the color setup and the leaderboards make it weird.. there may be an easier fix but I prefer to create my own system like I did above.
Report Abuse
bolony21 is not online. bolony21
Joined: 01 May 2014
Total Posts: 219
01 May 2016 09:37 AM
Thanks for the help just wondering were the script goes, does it goes in run command or were
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image