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: I made a simple rain system.

Previous Thread :: Next Thread 
shred1894 is not online. shred1894
Joined: 30 Aug 2009
Total Posts: 6515
03 Jan 2015 01:59 PM
http://www.roblox.com/item.aspx?id=200142757

Feel free to take and or reverse engineer or whatever. Someone who doesn't know much about scripting might learn something from it.

>S-1894~
Report Abuse
Josephsamson is not online. Josephsamson
Joined: 30 Oct 2012
Total Posts: 1421
03 Jan 2015 02:01 PM
thx bro,I read this script and now I've become a professional scripter.i don't know what you did mister but you deserve a promotion.
Report Abuse
shred1894 is not online. shred1894
Joined: 30 Aug 2009
Total Posts: 6515
03 Jan 2015 02:03 PM
@Joseph

Err... well... okay then... I was trying to be helpful, not attract trolls...
Report Abuse
milos8286 is not online. milos8286
Joined: 06 Dec 2008
Total Posts: 1232
03 Jan 2015 02:07 PM
Thanks! As an aspiring scripter I haven't tried looking at others scripts as a way of learning how to do it. I'll try that.
Report Abuse
shred1894 is not online. shred1894
Joined: 30 Aug 2009
Total Posts: 6515
03 Jan 2015 02:09 PM
@Milos

I taught myself how to script by looking at other scripts and playing around with them, eventually I got enough of a handle on that to start writing my own. And now I am one of the more prominent scripters in the clan world. It takes time, so bear with it, and one day you will be an amazing scripter.
Report Abuse
goro7 is not online. goro7
Joined: 01 Jul 2009
Total Posts: 735
03 Jan 2015 02:11 PM
I put the script in Workspace and tried it out to no avail. Is there something wrong or am I supposed to change settings?
Report Abuse
Josephsamson is not online. Josephsamson
Joined: 30 Oct 2012
Total Posts: 1421
03 Jan 2015 02:12 PM
Lighting.
Report Abuse
milos8286 is not online. milos8286
Joined: 06 Dec 2008
Total Posts: 1232
03 Jan 2015 02:13 PM
:') Thanks for the motivating words.. By playing around do you mean like changing the scripts functions and changing some of the things it does?
Report Abuse
goro7 is not online. goro7
Joined: 01 Jul 2009
Total Posts: 735
03 Jan 2015 02:16 PM
I put it in Lighting and still, nothing.
Report Abuse
DevUndead is not online. DevUndead
Joined: 24 Jul 2014
Total Posts: 558
03 Jan 2015 02:20 PM
Can you paste the source in the thread I can't get on studio right now and ai I wanna see
Report Abuse
goro7 is not online. goro7
Joined: 01 Jul 2009
Total Posts: 735
03 Jan 2015 02:21 PM
--[[ shred1894's Rain System ]]--


--[[ Settings ]]--

RainDensity = 5 -- 1 to 5, higher numbers mean thicker rain
RainWeight = 5 --1 to 5, affects fall rate and rain size



--[[ The script, edit at your own risk ]]--

function RainFall(RainPart)
local dist = RainPart.Distance.Value
--local FallUnit = (RainPart.Position+(Vector3.new(RainPart.Position.X,RainPart.Position.Y-400,RainPart.Position.Z))).Unit
RainPart.CFrame = CFrame.new(RainPart.Position,RainPart.Position-Vector3.new(0,100,0))
while wait(.00001) do
if dist > 100 or game.Workspace:FindPartOnRay(Ray.new(RainPart.Position-Vector3.new(0,dist - RainWeight*3,0),RainPart.Position-Vector3.new(0,dist + RainWeight*3,0))) ~= nil then
RainPart:Destroy()
break
end
RainPart.Mesh.Offset = Vector3.new(0,0,-dist)
dist = dist + RainWeight*2
end
end

function CreateRain()
if game.Workspace.CurrentCamera:FindFirstChild("RainParts") == nil then
rps = Instance.new("Model")
rps.Parent = game.Workspace.CurrentCamera
rps.Name = "RainParts"
end
while wait(1/100) do
for i=1,RainDensity do
rp = Instance.new("Part")
rp.FormFactor = "Custom"
rp.Anchored = true
rp.Transparency = .25
rp.BrickColor = BrickColor.new("Bright blue")
rp.Size = Vector3.new(.2,.2,RainWeight)
rp.CFrame = CFrame.new(game.Players.LocalPlayer.Character.Torso.Position + Vector3.new(math.random(-(75),(75)),100,math.random(-(75),(75))))
rp.Parent = game.Workspace.CurrentCamera.RainParts
msh = Instance.new("BlockMesh")
msh.Parent = rp
dstval = Instance.new("IntValue")
dstval.Name = "Distance"
dstval.Parent = rp
v = coroutine.wrap(RainFall)
v(rp)
end
end
end

cam = game.Workspace.CurrentCamera
if cam:FindFirstChild("RainParts")~= nil then
cam.RainParts:Destroy()
end

CreateRain()
Report Abuse
shred1894 is not online. shred1894
Joined: 30 Aug 2009
Total Posts: 6515
03 Jan 2015 02:21 PM
It goes into StarterGui, if you read the description of the model...
Report Abuse
DeviousDeviation is not online. DeviousDeviation
Joined: 28 Dec 2010
Total Posts: 9306
03 Jan 2015 02:21 PM
is it local?

logic is logical
Report Abuse
shred1894 is not online. shred1894
Joined: 30 Aug 2009
Total Posts: 6515
03 Jan 2015 02:22 PM
Yes, it is all local.
Report Abuse
goro7 is not online. goro7
Joined: 01 Jul 2009
Total Posts: 735
03 Jan 2015 02:22 PM
*facepalm* Oh.
Report Abuse
DeviousDeviation is not online. DeviousDeviation
Joined: 28 Dec 2010
Total Posts: 9306
03 Jan 2015 02:23 PM
okay good

logic is logical
Report Abuse
goro7 is not online. goro7
Joined: 01 Jul 2009
Total Posts: 735
03 Jan 2015 02:24 PM
Very cool. All you need to do now is make a cloud above you that follows you around that the rain comes out of.
Report Abuse
DevUndead is not online. DevUndead
Joined: 24 Jul 2014
Total Posts: 558
03 Jan 2015 02:24 PM
Wow, gj shred. I've wanted to make a particle plugin for a while. I wanted to use billboard GUIs thought.
Report Abuse
shred1894 is not online. shred1894
Joined: 30 Aug 2009
Total Posts: 6515
03 Jan 2015 02:25 PM
I could make a raincloud that follows just for the sake of humor, but ehh.
Report Abuse
DeviousDeviation is not online. DeviousDeviation
Joined: 28 Dec 2010
Total Posts: 9306
03 Jan 2015 02:25 PM
okay nevermind, that's extremely inefficient

logic is logical
Report Abuse
shred1894 is not online. shred1894
Joined: 30 Aug 2009
Total Posts: 6515
03 Jan 2015 02:26 PM
@DevUndead

The problem with billboard guis is that fog ignores them. It is great if you have the place 100% clear of fog, but the moment you add fog, it gets wonky.
Report Abuse
DeviousDeviation is not online. DeviousDeviation
Joined: 28 Dec 2010
Total Posts: 9306
03 Jan 2015 02:27 PM
you should also be using camera position, not torso position

logic is logical
Report Abuse
DevUndead is not online. DevUndead
Joined: 24 Jul 2014
Total Posts: 558
03 Jan 2015 02:27 PM
Make a random vert generator and have it triangulate the verbs to make clouds
Report Abuse
shred1894 is not online. shred1894
Joined: 30 Aug 2009
Total Posts: 6515
03 Jan 2015 02:28 PM
Devious, I know it is, I just didn't take the time to make it super efficient or anything, I was just wanting to churn out a medium quality script that works but isn't the cleanest.

I save my top shelf stuff for myself.
Report Abuse
goro7 is not online. goro7
Joined: 01 Jul 2009
Total Posts: 735
03 Jan 2015 02:51 PM
@shred

Remember my cloud idea? Oh yeah, I did it:

http://www.roblox.com/shred1894s-Rain-System-w-cloud-system-item?id=200169366
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