|
| 29 Sep 2012 05:42 PM |
| I need a stages checkpoint system script for an Obby. I have looked at an extreme amount of free models, but just can't find the right one. If you would be kind enough to make mea script and PM me it that allows the use of skipping stages, meaning going from maybe 1 all the way to 300, instead of having to go in order 1,2,3,4,5, etc |
|
|
| Report Abuse |
|
|
crusada91
|
  |
| Joined: 04 Sep 2010 |
| Total Posts: 684 |
|
|
| 29 Sep 2012 05:45 PM |
Name each of the spawn bricks: B1, B2, etc
add a script to workspace saying this:
function Obby(Player, MakeInt) if Player["leaderstats"]["Stage"] +1 = MakeInt then Player{"leaderstats']["Stage"] = << + 1 end end
c= game.Workspace["Spawns"]:GetChildren() for i = 1, NUMBEROFSPWNS do c[i].Touched:connect(function(hit) Obby(game.Players:GetPlayerFromCharacter, tonumber(string.sub(c[i].Name, 2)) end)
^^Something like that |
|
|
| Report Abuse |
|
|
|
| 29 Sep 2012 05:48 PM |
"<<" Wut?
I know the last time I checked, Lua doesn't support that. Did ROBLOX add compiler directives in Studio 2.0? :O |
|
|
| Report Abuse |
|
|
crusada91
|
  |
| Joined: 04 Sep 2010 |
| Total Posts: 684 |
|
| |
|
crusada91
|
  |
| Joined: 04 Sep 2010 |
| Total Posts: 684 |
|
|
| 29 Sep 2012 05:51 PM |
Ohh, << stands for what i typed before, iu was too lazy to type it << = Player["leaderstats"]["Stage"].Value |
|
|
| Report Abuse |
|
|