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