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