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 » Scripting Helpers
Home Search
 

Re: Broken Script..

Previous Thread :: Next Thread 
Taylod is not online. 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 is not online. Taylod
Joined: 03 Jun 2011
Total Posts: 272
01 Jun 2012 09:42 PM
ANSWER MEH!!!
Report Abuse
Taylod is not online. Taylod
Joined: 03 Jun 2011
Total Posts: 272
01 Jun 2012 09:51 PM
ANYONE?!?!?
Report Abuse
Fizzzzzlemaster is not online. Fizzzzzlemaster
Joined: 07 Jul 2009
Total Posts: 4612
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 is not online. Taylod
Joined: 03 Jun 2011
Total Posts: 272
01 Jun 2012 10:24 PM
Bump. :3
Report Abuse
Taylod is not online. Taylod
Joined: 03 Jun 2011
Total Posts: 272
02 Jun 2012 01:08 AM
Bump.
Report Abuse
Geomaster is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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