I need help making the rain effects work

i need help making the rain effects work. can anyone help??

the script:


local Lighting = game:GetService("Lighting")
local SSS = game:GetService("ServerScriptService")
local Rep = game:GetService("ReplicatedStorage")
local SS = game:GetService("ServerStorage")
local SG = game:GetService("StarterGui")
local Clouds = workspace.Terrain.Clouds

-- Main --

local function startlightrain()
	local rain = script.rain
	Clouds.Cover = 1
	Clouds.Density = 1
	Clouds.Color = Color3.fromRGB(93, 93, 93)
	rain.Parent = game.StarterPlayer.StarterCharacterScripts
	local chancetostop1 = math.random(1,20000)
	if chancetostop1 == 1 then
		rain.Parent = script
	end
end

while true do
	wait(0.8)
	local chancetostart1 = math.random(1, 5)
	if chancetostart1 == 1 then
		startlightrain()
	end
end

-- Custom --
2 Likes

whats the issue with the script?

1 Like

when the rain starts. the effect doesnt work.

image
this is the rain model

is that in workspace or replicated storage?

image
it goes into startercharacterscripts when the rain starts

  1. Local scripts don’t work in serverscriptservice, so it won’t work there.
  2. Also, why are you using a local script for this? I don’t think you need one, you should use a server script instead.
  3. I’m still a bit confused, it would help if you sent a game file so I can see the issue, up to you though.
  4. Why are you moving it into StarterCharacterScripts?
1 Like

:skull: IT ISNT MEANT TO BE THERE IT GETS PUT INTO STARTERCHARACTERSCRIPTS BECAUSE THE LCOAL SCRIPTS MAKE THE PARTS IN THAT FOLLOW THE CAMERA OF THE PLAYER WHICH ADDS A RAIN EFFECT??? BUT IT DOESNT WORK WHEN PUT INTO THERE BY THE SCRIPT

sorry for being rude. my bad i needa fix my temper

im raging at fortnite :sob: its so annoying

Yeah you should be more clear cause I’m still confused, moving it to startercharacterscripts wont do anything, you should move it to the character instead

1 Like

there is no possible way to move it into the character. ITS A SCRIPT NOT A LOCAL SCRIPT MAYBE READ IT OVER???


local Lighting = game:GetService("Lighting")
local SSS = game:GetService("ServerScriptService")
local Rep = game:GetService("ReplicatedStorage")
local SS = game:GetService("ServerStorage")
local SG = game:GetService("StarterGui")
local Clouds = workspace.Terrain.Clouds

-- Main --

local function startlightrain()
	local rain = script.rain
	Clouds.Cover = 1
	Clouds.Density = 1
	Clouds.Color = Color3.fromRGB(93, 93, 93)
	rain.Parent = game.StarterPlayer.StarterCharacterScripts
	local chancetostop1 = math.random(1,20000)
	if chancetostop1 == 1 then
		rain.Parent = script
	end
end

while true do
	wait(0.8)
	local chancetostart1 = math.random(1, 5)
	if chancetostart1 == 1 then
		startlightrain()
	end
end

-- Custom --
1 Like

alright well you shouldve simply said “its not a local script its a serverscript” instead of raging. also wdym youre ignoring what im saying, why are you moving it into startercharatcerscripts? and what even are you moving cause idk what “it” is

1 Like

bro i just told you. its the rain effects :sob:

this is its script (localscript)

local RunService = game:GetService("RunService")
local snowSource = script.Parent:WaitForChild("snowBlock"):Clone()
local setPos = Vector3.new
script.Parent.snowBlock:Destroy()
snowSource.Parent = playerCamera
RunService.RenderStepped:connect(function()
	snowSource.Position = playerCamera.CFrame.p + setPos(0, 12, 0)
end)```

bro what is “rain effects” the “WeatherHandler” server script? and again why are you moving it into startercharatcerscripts?

1 Like

image
this is the rain effects and it goes into startercharacterscripts because thats how it works

read the scripts bro so you actually understand it bro

i think you need to understand something; moving it to startercharacterscripts will not do anything, startercharacterscripts puts scripts inside of the character when they join, if youre gonna use a script to move it into startercharacterscripts it wont do anything since the character has already loaded by the time the script moves it, so im not sure if you think startercharacterscripts is gonna put it in the character or something. again, i don’t know why you’re trying to put it in startercharacterscripts because ive asked and you’re not telling me.

1 Like

then how do i put it in the player?