local X=Instance.new("\083\099\114\101\101\110\071\117\105")local N=Instance.new("\084\101\120\116\076\097\098\101\108")N.Text=string.format("\076\101\097\102 \067\111\117\110\116\058 \037\100 \065\099\116\105\118\101\044 \037\100 \073\110\097\099\116\105\118\101\044 \055\055\055\054\048 \084\111\116\097\108",0,0)N.BackgroundTransparency=.3 N.BackgroundColor3=Color3.new()N.TextStrokeTransparency=.8 N.Size=UDim2.new(.6,0,0,27)N.Position=UDim2.new(.2,0,1,-35)N.Font=Enum.Font.RobotoMono N.TextSize=25 N.TextColor3=Color3.new(1,1,1)N.Parent=X local K=Instance.new("\084\101\120\116\066\111\120")K.Text=string.format("\087\105\110\100 \083\112\101\101\100\058 \037\046\049\102",WIND_SPEED)K.PlaceholderText="\073\110\112\117\116 \083\112\101\101\100"K.BackgroundTransparency=.8 K.TextStrokeTransparency=.8 K.Size=UDim2.new(.2,0,0,20)K.Position=UDim2.new(0,5,.45,0)K.Font=Enum.Font.RobotoMono K.TextXAlignment=Enum.TextXAlignment.Left K.TextSize=18 K.TextColor3=Color3.new(1,1,1)K.FocusLost:Connect(function()local X=tonumber(K.Text:match("\091\037\100\037\046\093\043"))if X then WIND_SPEED=math.clamp(X,0,50)WindLines.Speed=WIND_SPEED WindShake:UpdateAllObjectSettings({Speed=WIND_SPEED})WindShake:SetDefaultSettings({Speed=WIND_SPEED})end K.Text=string.format("\087\105\110\100 \083\112\101\101\100\058 \037\046\049\102",WIND_SPEED)end)K.Parent=X local V=Instance.new("\084\101\120\116\066\111\120")V.Text=string.format("\087\105\110\100 \080\111\119\101\114\058 \037\046\049\102",WIND_POWER)V.PlaceholderText="\073\110\112\117\116 \080\111\119\101\114"V.BackgroundTransparency=.8 V.TextStrokeTransparency=.8 V.Size=UDim2.new(.2,0,0,20)V.Position=UDim2.new(0,5,.45,25)V.Font=Enum.Font.RobotoMono V.TextXAlignment=Enum.TextXAlignment.Left V.TextSize=18 V.TextColor3=Color3.new(1,1,1)V.FocusLost:Connect(function()local X=tonumber(V.Text:match("\091\037\100\037\046\093\043"))if X then WIND_POWER=math.clamp(X,0,3)WindShake:UpdateAllObjectSettings({Power=WIND_POWER})WindShake:SetDefaultSettings({Power=WIND_POWER})end V.Text=string.format("\087\105\110\100 \080\111\119\101\114\058 \037\046\049\102",WIND_POWER)end)V.Parent=X local f=Instance.new("\084\101\120\116\066\111\120")f.Text=string.format("\087\105\110\100 \068\105\114\101\099\116\105\111\110\058 \037\046\049\102\044\037\046\049\102\044\037\046\049\102",WIND_DIRECTION.X,WIND_DIRECTION.Y,WIND_DIRECTION.Z)f.PlaceholderText="\073\110\112\117\116 \068\105\114\101\099\116\105\111\110"f.BackgroundTransparency=.8 f.TextStrokeTransparency=.8 f.Size=UDim2.new(.2,0,0,20)f.Position=UDim2.new(0,5,.45,50)f.Font=Enum.Font.RobotoMono f.TextXAlignment=Enum.TextXAlignment.Left f.TextSize=18 f.TextColor3=Color3.new(1,1,1)f.FocusLost:Connect(function()local X=table.create(3)for N in string.gmatch(f.Text,"\037-\063\091\037\100\037\046\093\043")do X[#X+1]=tonumber(N)end local N=(Vector3.new(X[1]or WIND_DIRECTION.X,X[2]or WIND_DIRECTION.Y,X[3]or WIND_DIRECTION.Z)).Unit if N then WIND_DIRECTION=N WindLines.Direction=N WindShake:UpdateAllObjectSettings({Direction=N})WindShake:SetDefaultSettings({Direction=N})end f.Text=string.format("\087\105\110\100 \068\105\114\101\099\116\105\111\110\058 \037\046\049\102\044 \037\046\049\102\044 \037\046\049\102",WIND_DIRECTION.X,WIND_DIRECTION.Y,WIND_DIRECTION.Z)end)f.Parent=X spawn(function()while wait(.1)do local X,K=WindShake.Active,WindShake.Handled N.Text=string.format("\076\101\097\102 \067\111\117\110\116\058 \037\100 \065\099\116\105\118\101\044 \037\100 \073\110\097\099\116\105\118\101\044 \037\100 \078\111\116 \083\116\114\101\097\109\101\100 \073\110 \040\055\055\055\054\048 \084\111\116\097\108\041",X,K-X,77760-K)end end)
-- Demo dynamic settings

local Gui = Instance.new("ScreenGui")

local CountLabel = Instance.new("TextLabel")
CountLabel.Text = string.format("Leaf Count: %d Active, %d Inactive, 77760 Total", 0, 0)
CountLabel.BackgroundTransparency = 0.3
CountLabel.BackgroundColor3 = Color3.new()
CountLabel.TextStrokeTransparency = 0.8
CountLabel.Size = UDim2.new(0.6, 0, 0, 27)
CountLabel.Position = UDim2.new(0.2, 0, 1, -35)
CountLabel.Font = Enum.Font.RobotoMono
CountLabel.TextSize = 25
CountLabel.TextColor3 = Color3.new(1, 1, 1)
CountLabel.Parent = Gui

local SpeedInput = Instance.new("TextBox")
SpeedInput.Text = string.format("Wind Speed: %.1f", WIND_SPEED)
SpeedInput.PlaceholderText = "Input Speed"
SpeedInput.BackgroundTransparency = 0.8
SpeedInput.TextStrokeTransparency = 0.8
SpeedInput.Size = UDim2.new(0.2, 0, 0, 20)
SpeedInput.Position = UDim2.new(0, 5, 0.45, 0)
SpeedInput.Font = Enum.Font.RobotoMono
SpeedInput.TextXAlignment = Enum.TextXAlignment.Left
SpeedInput.TextSize = 18
SpeedInput.TextColor3 = Color3.new(1, 1, 1)
SpeedInput.FocusLost:Connect(function()
	local newSpeed = tonumber(SpeedInput.Text:match("[%d%.]+"))
	if newSpeed then
		WIND_SPEED = math.clamp(newSpeed, 0, 50)
		WindLines.Speed = WIND_SPEED
		WindShake:UpdateAllObjectSettings({ Speed = WIND_SPEED })
		WindShake:SetDefaultSettings({ Speed = WIND_SPEED })
	end
	SpeedInput.Text = string.format("Wind Speed: %.1f", WIND_SPEED)
end)
SpeedInput.Parent = Gui

local PowerInput = Instance.new("TextBox")
PowerInput.Text = string.format("Wind Power: %.1f", WIND_POWER)
PowerInput.PlaceholderText = "Input Power"
PowerInput.BackgroundTransparency = 0.8
PowerInput.TextStrokeTransparency = 0.8
PowerInput.Size = UDim2.new(0.2, 0, 0, 20)
PowerInput.Position = UDim2.new(0, 5, 0.45, 25)
PowerInput.Font = Enum.Font.RobotoMono
PowerInput.TextXAlignment = Enum.TextXAlignment.Left
PowerInput.TextSize = 18
PowerInput.TextColor3 = Color3.new(1, 1, 1)
PowerInput.FocusLost:Connect(function()
	local newPower = tonumber(PowerInput.Text:match("[%d%.]+"))
	if newPower then
		WIND_POWER = math.clamp(newPower, 0, 3)
		WindShake:UpdateAllObjectSettings({ Power = WIND_POWER })
		WindShake:SetDefaultSettings({ Power = WIND_POWER })
	end
	PowerInput.Text = string.format("Wind Power: %.1f", WIND_POWER)
end)
PowerInput.Parent = Gui

local DirInput = Instance.new("TextBox")
DirInput.Text = string.format("Wind Direction: %.1f,%.1f,%.1f", WIND_DIRECTION.X, WIND_DIRECTION.Y, WIND_DIRECTION.Z)
DirInput.PlaceholderText = "Input Direction"
DirInput.BackgroundTransparency = 0.8
DirInput.TextStrokeTransparency = 0.8
DirInput.Size = UDim2.new(0.2, 0, 0, 20)
DirInput.Position = UDim2.new(0, 5, 0.45, 50)
DirInput.Font = Enum.Font.RobotoMono
DirInput.TextXAlignment = Enum.TextXAlignment.Left
DirInput.TextSize = 18
DirInput.TextColor3 = Color3.new(1, 1, 1)
DirInput.FocusLost:Connect(function()
	local Inputs = table.create(3)
	for Num in string.gmatch(DirInput.Text, "%-?[%d%.]+") do
		Inputs[#Inputs + 1] = tonumber(Num)
	end

	local newDir =
		Vector3.new(Inputs[1] or WIND_DIRECTION.X, Inputs[2] or WIND_DIRECTION.Y, Inputs[3] or WIND_DIRECTION.Z).Unit
	if newDir then
		WIND_DIRECTION = newDir
		WindLines.Direction = newDir
		WindShake:UpdateAllObjectSettings({ Direction = newDir })
		WindShake:SetDefaultSettings({ Direction = newDir })
	end

	DirInput.Text =
		string.format("Wind Direction: %.1f, %.1f, %.1f", WIND_DIRECTION.X, WIND_DIRECTION.Y, WIND_DIRECTION.Z)
end)
DirInput.Parent = Gui

spawn(function()
	while wait(0.1) do
		local Active, Handled = WindShake.Active, WindShake.Handled
		CountLabel.Text = string.format(
			"Leaf Count: %d Active, %d Inactive, %d Not Streamed In (77760 Total)",
			Active,
			Handled - Active,
			77760 - Handled
		)
	end
end)
