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: Teleport to a random brick

Previous Thread :: Next Thread 
henryrexdog is not online. henryrexdog
Joined: 16 Jul 2011
Total Posts: 28
06 Apr 2014 03:46 PM
I need help. I made a Gui, and it teleport to one brick. I want it to teleport to random brick. Please help me!
Report Abuse
NeonRiver is not online. NeonRiver
Joined: 12 Feb 2013
Total Posts: 4936
06 Apr 2014 03:47 PM
[ Content Deleted ]
Report Abuse
MidnightDeveloper is not online. MidnightDeveloper
Joined: 08 Feb 2014
Total Posts: 1671
06 Apr 2014 03:48 PM
local bricks = {}
for i,v in pairs(workspace:GetChildren()) do
if v:IsA("BasePart") then
table.insert(bricks, v)
end
end
local randomBrick = bricks[math.random(1, #bricks)]
-- teleport player to randomBrick
Report Abuse
henryrexdog is not online. henryrexdog
Joined: 16 Jul 2011
Total Posts: 28
06 Apr 2014 03:48 PM
Why you such a noob?
Report Abuse
henryrexdog is not online. henryrexdog
Joined: 16 Jul 2011
Total Posts: 28
06 Apr 2014 03:49 PM
Thx bro.
Report Abuse
henryrexdog is not online. henryrexdog
Joined: 16 Jul 2011
Total Posts: 28
06 Apr 2014 03:59 PM
I simply replace the script i had before that teleport to one brick with the script you have given me. I press the gui and it does not teleport to a random brick i have place everywhere. Please help!
Report Abuse
henryrexdog is not online. henryrexdog
Joined: 16 Jul 2011
Total Posts: 28
06 Apr 2014 04:07 PM
Any suggestions like giving me instructions with the script to put in the gui?
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