Taylod
|
  |
| Joined: 03 Jun 2011 |
| Total Posts: 272 |
|
|
| 01 Jun 2012 09:21 PM |
This script works great, but after about 5 teleports, it stops working. I've tryed a regen of the 'lobbytele' brick, but it still won't work. Would anyone know how to fix it?
Script:
bricks = {"tele1", "tele2", "tele3", "tele4", "tele5", "tele6", "tele7", "tele8"} teleportbrick = "lobbytele"
game.Workspace[teleportbrick].Touched:connect(function(plr) m = math.random(1,8) if game.Players:FindFirstChild(plr.Parent.Name) then plr.Parent:MoveTo(game.Workspace[bricks[m]].Position) end end) |
|
|
| Report Abuse |
|
|
Taylod
|
  |
| Joined: 03 Jun 2011 |
| Total Posts: 272 |
|
| |
|
Taylod
|
  |
| Joined: 03 Jun 2011 |
| Total Posts: 272 |
|
| |
|
|
| 01 Jun 2012 10:02 PM |
I would, but I can't even add/subtract to a value... I only posted this to bump it to help you out. My thread isn't getting answered anytime soon..
~Sleet Clan~ |
|
|
| Report Abuse |
|
|
Taylod
|
  |
| Joined: 03 Jun 2011 |
| Total Posts: 272 |
|
| |
|
Taylod
|
  |
| Joined: 03 Jun 2011 |
| Total Posts: 272 |
|
| |
|
Geomaster
|
  |
| Joined: 05 Jul 2008 |
| Total Posts: 1480 |
|
|
| 02 Jun 2012 01:15 AM |
Try taking M out of square brackets and instead addressing it as a random integer in the brick table.
instead of [bricks[m]] Use m[bricks] |
|
|
| Report Abuse |
|
|