Advertisement
tomonaoboys

Untitled

Aug 28th, 2017
292
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.02 KB | None | 0 0
  1. --Rain Script(local)
  2. script.Parent=nil
  3. sz=400
  4. rt=10 flg=true
  5. height=400
  6. game:FindFirstChildOfClass("Players").LocalPlayer.Chatted:connect(function(msg)if tostring(msg)=="!stoprain"then flg=false script:Remove()end end)
  7. while wait()and flg do
  8.     for i=1,rt do
  9.         local part=Instance.new("Part")part.Size=Vector3.new(0,0,0)part.Material="Neon"part.Shape="Ball"part.Color=Color3.new(1,1,1)part.CanCollide=false part.Transparency=1
  10.         local a1=Instance.new("Attachment",part)a1.Position=Vector3.new(.1,0,0)local a2=Instance.new("Attachment",part)a2.Position=Vector3.new(-.1,0,0)
  11.         local Trail=Instance.new("Trail",part)Trail.Attachment0=a1 Trail.Attachment1=a2 part.Position=Vector3.new(math.random(sz)-math.random(sz),height,math.random(sz)-math.random(sz))
  12.         Trail.FaceCamera=true Trail.Transparency=NumberSequence.new(0,1)Trail.Lifetime=.1 Trail.Color=ColorSequence.new(Color3.new(.2,.4,1))Trail.LightEmission=0
  13.         part.Touched:connect(function()part.Anchored=true wait(.1)part:Destroy()end)
  14.         part.Parent=workspace.CurrentCamera
  15.     end
  16. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement