Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --// CREATED BY ESTSUKI \\--
- if not _G.Executed then
- _G.Executed = true
- function Tween(obj,props,time,easing,direction,repeats,backwards)
- local info = TweenInfo.new(time or .5, easing or Enum.EasingStyle.Quad, direction or Enum.EasingDirection.Out, repeats or 0, backwards or false)
- local tween = game:GetService("TweenService"):Create(obj, info, props)
- tween:Play()
- end
- local Services = {
- Debris = game:GetService("Debris"),
- RenderStepped = game:GetService("RunService").RenderStepped,
- Players = game:GetService("Players")
- }
- local Player = game.Players.LocalPlayer;
- local Raining = false;
- local Prefix = "`";
- local RainFolder = Instance.new("Folder", workspace);
- local RainCasters = {
- [1773860961] = true,
- [57370993] = true,
- [328330721] = true,
- [62009114] = true,
- }
- local CC = Instance.new("ColorCorrectionEffect", game.Lighting)
- local RainSound = Instance.new("Sound", workspace)
- RainSound.SoundId = "rbxassetid://374244545"
- RainSound.Volume = 0.001
- RainSound.Playing = true
- RainSound.Looped = true
- local StartRC = function(P)
- P.Chatted:Connect(function(msg)
- if string.lower(msg):find("rain on") then
- Raining = true
- Tween(RainSound,{Volume = 1},5,Enum.EasingStyle.Linear,Enum.EasingDirection.In)
- Tween(CC,{TintColor = Color3.fromRGB(140,140,140), Saturation = -0.2},5,Enum.EasingStyle.Linear,Enum.EasingDirection.In)
- --Tween(game.Lighting,{FogColor = Color3.fromRGB(72,72,72), FogEnd = 100, FogStart = 20},5,Enum.EasingStyle.Linear,Enum.EasingDirection.In)
- elseif string.lower(msg):find("rain off") then
- Raining = false
- Tween(RainSound,{Volume = 0.001},5,Enum.EasingStyle.Linear,Enum.EasingDirection.In)
- Tween(CC,{TintColor = Color3.fromRGB(255,255,255), Saturation = 0},5,Enum.EasingStyle.Linear,Enum.EasingDirection.In)
- --Tween(game.Lighting,{FogColor = Color3.fromRGB(72,72,72), FogEnd = 1000, FogStart = 0},5,Enum.EasingStyle.Linear,Enum.EasingDirection.In)
- end
- end)
- end
- Services.Players.PlayerAdded:Connect(function(Plr)
- if RainCasters[Plr.UserId] then
- StartRC(Plr)
- end
- end)
- for _,Plr in pairs(Services.Players:GetPlayers()) do
- if RainCasters[Plr.UserId] then
- StartRC(Plr)
- end
- end
- Services.RenderStepped:Connect(function()
- if Raining and Player.Character then
- local Ray = Ray.new(Player.Character.Torso.Position, Vector3.new(0, 40, 0))
- local Part,d = game.Workspace:FindPartOnRayWithIgnoreList(Ray, {Player.Character}, false, false)
- if Part and Part.CanCollide == true and Part.Transparency == 0 then
- Tween(RainSound,{Volume = 0.2},0.5,Enum.EasingStyle.Linear,Enum.EasingDirection.In)
- else
- Tween(RainSound,{Volume = 1},0.5,Enum.EasingStyle.Linear,Enum.EasingDirection.In)
- end
- end
- if Raining == true and Player.Character then
- local Rain = Instance.new("Part", RainFolder)
- Services.Debris:AddItem(Rain, 20)
- local RainMesh = Instance.new("SpecialMesh", Rain)
- RainMesh.MeshType = "Sphere"
- Rain.Material = Enum.Material.Glass
- Rain.Transparency = 0.7
- Rain.Color = Color3.fromRGB(82, 124, 174)
- Rain.Anchored = true
- Rain.Size = Vector3.new(math.random(10, 20)/100,math.random(400,500)/100,math.random(10, 20)/100)
- Rain.Position = Player.Character.Torso.Position + Vector3.new(math.random(-100, 100), math.random(60, 100), math.random(-100, 100))
- local Ray = Ray.new(Rain.Position, Vector3.new(0, -200, 0))
- local Part,d = game.Workspace:FindPartOnRayWithIgnoreList(Ray, {Player.Character}, false, false)
- if Part and Part.CanCollide == true and Part.Transparency == 0 then
- Tween(Rain,{Position = d},1,Enum.EasingStyle.Linear,Enum.EasingDirection.In)
- wait(1)
- local Position = Rain.Position
- Rain:Destroy()
- local Cylinder = Instance.new("Part", workspace)
- Cylinder.Material = Enum.Material.Glass
- Cylinder.Transparency = 0.7
- Cylinder.Color = Color3.fromRGB(82, 124, 174)
- Cylinder.Shape = "Cylinder"
- Cylinder.Anchored = true
- Cylinder.Position = d + Vector3.new(0, 0.25, 0)
- Cylinder.Size = Vector3.new(0.3,1,1)
- Cylinder.Orientation = Vector3.new(0, 0, 90)
- Tween(Cylinder,{Transparency = 1, Size = Vector3.new(0.1,5,5), Position = Cylinder.Position + Vector3.new(0, -0.2, 0)},1,Enum.EasingStyle.Quint,Enum.EasingDirection.Out)
- Services.Debris:AddItem(Cylinder, 1)
- end
- end
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment