Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR LUA

roblox studio rain

while true do	--infinite loop until it broken (forced to stop)
	
	local z = math.random(-255,255)
	local y = 100
	local x = math.random(-255,255)
	
	wait(0.003)	--so the game doesnt crash
	local newpart = Instance.new("Part",game.Workspace.rain)	--making rain, setting its location and properties
	newpart.Name = "i am part"
	newpart.Anchored = false
	newpart.Position = Vector3.new(x, y, z)
	newpart.Size =Vector3.new(1,2,1)
	newpart.Transparency = 0.5
	newpart.Color = Color3.new(0, 0.713725, 0.713725)
	newpart.Material = Enum.Material.SmoothPlastic
	newpart.CanCollide = false
	
end
 
PREVIOUS NEXT
Tagged: #roblox #studio #rain
ADD COMMENT
Topic
Name
7+9 =