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


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)
