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: Rain Position...

Previous Thread :: Next Thread 
ImmortalMiner is not online. ImmortalMiner
Joined: 28 Jun 2011
Total Posts: 658
04 Feb 2012 09:02 PM
It's not working..........


while true do
wait()

local p = Instance.new("Part")

p.Parent = game.Workspace
p.Name = "Raindrop"
p.Anchored = false
p.CanCollide = false
p.Size = Vector3.new(1,1,1)
p.Position = Vector3.new(math.random(-277.5,82.5),math.random(116.8,847.6),math.random(-279.5,-617.5))
p.BrickColor = BrickColor.new(21)
end


Report Abuse
ImmortalMiner is not online. ImmortalMiner
Joined: 28 Jun 2011
Total Posts: 658
04 Feb 2012 09:05 PM
I want it to rain from here:

82.5, 332, -279.5

to here:

-277.5, 82.8, -617.5

(Different positions from original script by the way)
Report Abuse
ImmortalMiner is not online. ImmortalMiner
Joined: 28 Jun 2011
Total Posts: 658
04 Feb 2012 09:13 PM
Bump!
Report Abuse
Phellem is not online. Phellem
Joined: 04 Aug 2011
Total Posts: 1984
04 Feb 2012 09:16 PM
"I want it to rain from here:

82.5, 332, -279.5

to here:

-277.5, 82.8, -617.5"


Be more specific.

Report Abuse
ImmortalMiner is not online. ImmortalMiner
Joined: 28 Jun 2011
Total Posts: 658
04 Feb 2012 09:18 PM
what else do you need?
Report Abuse
ImmortalMiner is not online. ImmortalMiner
Joined: 28 Jun 2011
Total Posts: 658
04 Feb 2012 09:23 PM
@Phellum what else do you need?
Report Abuse
Phellem is not online. Phellem
Joined: 04 Aug 2011
Total Posts: 1984
04 Feb 2012 09:27 PM
Nvm.
It just that you didn't explain it correctly.

Here's a guess:


local lowest_x = -277.5
local highest_x = 82.5
local lowest_y = 82.8
local highest_y = 332
local lowest_z = -617.5
local highest_z = -279.5
local mr = math.random
while true do
local p = Instance.new("Part",game.Workspace)
p.Name = "Raindrop"
p.CanCollide = false
p.Size = Vector3.new(1,1,1)
p.CFrame = CFrame.new(mr(lowest_x,highest_x),mr(lowest_y,highest_y),mr(lowest_z,highest_z))
p.BrickColor = BrickColor.new("Bright red")
wait(0.3)
end
Report Abuse
ImmortalMiner is not online. ImmortalMiner
Joined: 28 Jun 2011
Total Posts: 658
04 Feb 2012 09:31 PM
Okay it works but how to I make it rain more drops and faster? Do I change wait(0.3) to wait(0.01)?
Report Abuse
Phellem is not online. Phellem
Joined: 04 Aug 2011
Total Posts: 1984
04 Feb 2012 09:36 PM
local lowest_x = -277.5
local highest_x = 82.5
local lowest_y = 82.8
local highest_y = 332
local lowest_z = -617.5
local highest_z = -279.5
local how_much_rain = 3 --[[ Change the number to how many rain you want to drop. ]]--
local mr = math.random
while true do
for i=1,how_much_rain do
local p = Instance.new("Part",game.Workspace)
p.Name = "Raindrop"
p.CanCollide = false
p.Size = Vector3.new(1,1,1)
p.CFrame = CFrame.new(mr(lowest_x,highest_x),mr(lowest_y,highest_y),mr(lowest_z,highest_z))
p.BrickColor = BrickColor.new("Bright red")
end
wait(0.03)
end
Report Abuse
ImmortalMiner is not online. ImmortalMiner
Joined: 28 Jun 2011
Total Posts: 658
04 Feb 2012 09:38 PM
How do I make them balls?
Report Abuse
ImmortalMiner is not online. ImmortalMiner
Joined: 28 Jun 2011
Total Posts: 658
04 Feb 2012 09:39 PM
script so far:

local lowest_x = -277.5
local highest_x = 82.5
local lowest_y = 82.8
local highest_y = 332
local lowest_z = -617.5
local highest_z = -279.5
local mr = math.random
while true do
local p = Instance.new("Part",game.Workspace)
p.Name = "Raindrop"
p.Transparency = 0.4
p.CanCollide = false
p.Size = Vector3.new(1,1,1)
p.CFrame = CFrame.new(mr(lowest_x,highest_x),mr(lowest_y,highest_y),mr(lowest_z,highest_z))
p.BrickColor = BrickColor.new("Medium blue")
wait(0.0001)
end

how do I make them balls?
Report Abuse
Phellem is not online. Phellem
Joined: 04 Aug 2011
Total Posts: 1984
04 Feb 2012 09:40 PM
Add this:

p.Shape = "Ball"




http://wiki.roblox.com/index.php/Shape
http://wiki.roblox.com/index.php/PartType_(Enum)
Report Abuse
Phellem is not online. Phellem
Joined: 04 Aug 2011
Total Posts: 1984
04 Feb 2012 09:40 PM
"wait(0.0001)"

might as well remove that part
Report Abuse
ImmortalMiner is not online. ImmortalMiner
Joined: 28 Jun 2011
Total Posts: 658
05 Feb 2012 05:26 PM
how do I make it rain faster?
Report Abuse
Phellem is not online. Phellem
Joined: 04 Aug 2011
Total Posts: 1984
05 Feb 2012 06:34 PM
local lowest_x = -277.5
local highest_x = 82.5
local lowest_y = 82.8
local highest_y = 332
local lowest_z = -617.5
local highest_z = -279.5
local how_much_rain = 5 --[[ Change the number to how many rain you want to drop. ]]--
local mr = math.random
while true do
for i=1,how_much_rain do
local p = Instance.new("Part",game.Workspace)
p.Name = "Raindrop"
p.CanCollide = false
p.Size = Vector3.new(1,1,1)
p.CFrame = CFrame.new(mr(lowest_x,highest_x),mr(lowest_y,highest_y),mr(lowest_z,highest_z))
p.BrickColor = BrickColor.new("Bright red")
end
wait()--[[How long before it can rain (how_much_rain) again. ]]--
end
Report Abuse
Phellem is not online. Phellem
Joined: 04 Aug 2011
Total Posts: 1984
05 Feb 2012 06:34 PM
local lowest_x = -277.5
local highest_x = 82.5
local lowest_y = 82.8
local highest_y = 332
local lowest_z = -617.5
local highest_z = -279.5
local how_much_rain = 5 --[[ Change the number to how many rain you want to drop. ]]--
local mr = math.random
while true do
for i=1,how_much_rain do
local p = Instance.new("Part",game.Workspace)
p.Name = "Raindrop"
p.CanCollide = false
p.Size = Vector3.new(1,1,1)
p.Shape = "Ball"
p.CFrame = CFrame.new(mr(lowest_x,highest_x),mr(lowest_y,highest_y),mr(lowest_z,highest_z))
p.BrickColor = BrickColor.new("Bright red")
end
wait()--[[How long before it can rain (how_much_rain) again. ]]--
end
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