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: whats a script where it randomly rains

Previous Thread :: Next Thread 
dhr1 is not online. dhr1
Joined: 15 Apr 2008
Total Posts: 76297
08 May 2013 09:39 PM
like it rains

then the rain stops for a few min

then it resumes again

is there a script for this?
Report Abuse
KillerKyle is not online. KillerKyle
Joined: 29 Jul 2007
Total Posts: 6371
08 May 2013 10:00 PM
Yes. Gotta break it down though. It's more then just "Make it rain".

What is the rain made out of?
How thick is the rain?
Will it lag?
Report Abuse
Voidion is not online. Voidion
Joined: 01 Aug 2011
Total Posts: 2668
08 May 2013 10:01 PM
Use a while loop with Instance.new
Report Abuse
ArcticGenesis is not online. ArcticGenesis
Joined: 22 Apr 2013
Total Posts: 76
08 May 2013 11:43 PM
bro, do this,(It will lag alot :/)
while true do
rain = Instance.new("Part", workspace)
rain.BrickColor = BrickColor.new("Bright blue")
rain.Transparency = 0.5
rain.Position = Vector3.new(math.random(1,40), 30, math.random(1,40))
wait(0.5)
end
(ง'̀-'́)ง
Report Abuse
CodyTheBuildingKid is not online. CodyTheBuildingKid
Joined: 13 Dec 2011
Total Posts: 4399
08 May 2013 11:49 PM
Interval_Between_Rain_Periods = 10 -- in seconds
Amount_Of_Rain_In_Each_Period = 100


while wait(Interval_Between_Rain_Periods) do
for i = 1, Amount_Of_Rain_In_Each_Period do
local Rain = Instance.new("Part", Game.Workspace)
Rain.BrickColor = BrickColor.new("Really blue")
Rain.Transparency = 0.6
Rain.CanCollide = false
Rain.CFrame = CFrame.new(math.random(25), 100, math.random(25))
Game.Debris:AddItem(Rain, 5)
wait(1/30)
end
end
Report Abuse
hannahhodge101 is not online. hannahhodge101
Joined: 22 May 2013
Total Posts: 16
05 Nov 2013 06:03 AM
thanks fro making this thread i need help
Report Abuse
DragonODeath is not online. DragonODeath
Joined: 02 May 2011
Total Posts: 1252
05 Nov 2013 07:41 AM
Shortest code:

repeat while true do for rain = 0,1,0 do end end until nil
Report Abuse
TomsGames is online. TomsGames
Joined: 11 Oct 2013
Total Posts: 1615
05 Nov 2013 09:26 AM
repeat while true do for rain = 0,1,0 do end end until nil

Dragon, that wouldn't do what he wants. Just for other viewers sakes this is what he put:

repeat while true do
for rain = 0 , 1, 0 do
end
end
until nil

To be honest, that wouldn't even work.
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