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: My minigame script died :C

Previous Thread :: Next Thread 
LightRaid is not online. LightRaid
Joined: 08 Oct 2012
Total Posts: 4414
25 Jul 2015 01:02 PM
function removePlate()
p = game.Workspace.DissapearingPlates.Plates:GetChildren()
ranNum = math.random(1, #p)
ranNum2 = ranNum
while ranNum == ranNum2 do
ranNum2 = math.random(1, #p)
wait()
end
plateChosen = p(ranNum)
plateChosen = p(ranNum2)
for i = 0, 1, 0.05 do
plateChosen.Transparency = i
plateChosen2.Transparency = i
wait()
end
plateChosen:Destroy()
plateChosen2:Destroy()
end

This particular function is for my Disappearing Plates mini-game, it's supposed to make each plate disappear randomly, one by one... but it won't work :-(
Report Abuse
LightRaid is not online. LightRaid
Joined: 08 Oct 2012
Total Posts: 4414
25 Jul 2015 01:03 PM
bump
Report Abuse
LightRaid is not online. LightRaid
Joined: 08 Oct 2012
Total Posts: 4414
25 Jul 2015 01:04 PM
bump2
Report Abuse
LightRaid is not online. LightRaid
Joined: 08 Oct 2012
Total Posts: 4414
25 Jul 2015 01:08 PM
bump3
Report Abuse
LightRaid is not online. LightRaid
Joined: 08 Oct 2012
Total Posts: 4414
25 Jul 2015 02:48 PM
bump4
Report Abuse
XYuy is not online. XYuy
Joined: 24 Dec 2010
Total Posts: 5628
25 Jul 2015 02:51 PM
You need to make sure that the math.random does not choose the same number.
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