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: HELP

Previous Thread :: Next Thread 
Moeru is not online. Moeru
Joined: 25 Mar 2015
Total Posts: 396
29 May 2015 07:25 PM
local Random_Part = Link_Clone.Parts:GetChildren()[math.random(#Link_Clone.Parts:GetChildren())]
local Random_X = math.random(Link_Clone.Spawn_Area.Size.X/-2, Link_Clone.Spawn_Area.Size.X/2)
local Random_Y = math.random(Link_Clone.Spawn_Area.Size.Y/-2, Link_Clone.Spawn_Area.Size.Y/2)
local Random_Z = math.random(Link_Clone.Spawn_Area.Size.Z/-2, Link_Clone.Spawn_Area.Size.Z/2)
Random_Part.Position = Random_Part.Position + Vector3.new(Random_X, Random_Y, Random_Z)
for i = 1, 100 do
wait(0.001)
Random_Part.CFrame = Random_Part.CFrame + Vector3.new(0, 0, 1)
end

I thought this was going add '(0, 0, 1)' to all children of 'Link_Clone.Parts'

BUT it only chooses ONE random part. :(
Report Abuse
Moeru is not online. Moeru
Joined: 25 Mar 2015
Total Posts: 396
29 May 2015 07:27 PM
bump
Report Abuse
Moeru is not online. Moeru
Joined: 25 Mar 2015
Total Posts: 396
29 May 2015 07:30 PM
no one? :(
Report Abuse
Moeru is not online. Moeru
Joined: 25 Mar 2015
Total Posts: 396
29 May 2015 07:34 PM
Am I not being clear enough? :C or can you understand?
Report Abuse
LegitimatlyMe is not online. LegitimatlyMe
Joined: 30 Oct 2013
Total Posts: 1108
29 May 2015 07:35 PM
it's cuz you only set your 'Random_Part' variable once, meaning it will NEVER change again until you change it.
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
29 May 2015 07:35 PM
put the wait after that random part thing

for blah do
--stuff
wait(0.001)
end
Report Abuse
Moeru is not online. Moeru
Joined: 25 Mar 2015
Total Posts: 396
29 May 2015 07:38 PM
@Legit so what should I do? Or is there a better way to do this whole thing?
Report Abuse
Moeru is not online. Moeru
Joined: 25 Mar 2015
Total Posts: 396
29 May 2015 07:48 PM
bump
Report Abuse
Moeru is not online. Moeru
Joined: 25 Mar 2015
Total Posts: 396
29 May 2015 07:53 PM
I'll figure it out I guess. Thanks for help anyways Scripters. C:
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