feedbackMain.CharactersLeft.Text=maxCharacters-#feedbackMain.InputBox.Input.Text feedbackMain.InputBox.Input.Changed:Connect(function()feedbackMain.CharactersLeft.Text=maxCharacters-#feedbackMain.InputBox.Input.Text if maxCharacters-#feedbackMain.InputBox.Input.Text<0 then feedbackMain.CharactersLeft.TextColor3=Color3.fromRGB(255,50,50)feedbackMain.SendButton.Style=Enum.ButtonStyle.RobloxRoundButton else feedbackMain.CharactersLeft.TextColor3=Color3.fromRGB(255,255,255)feedbackMain.SendButton.Style=Enum.ButtonStyle.RobloxRoundDefaultButton end end)local o=false feedbackMain.SendButton.MouseButton1Click:Connect(function()if not o and maxCharacters-#feedbackMain.InputBox.Input.Text>=0 then o=true local Z=feedbackMain.InputBox.Input.Text feedbackMain.InputBox.Input.Text="\083\101\110\100\105\110\103 \077\101\115\115\097\103\101\046\046\046"local h=game.ReplicatedStorage.FilteringFunction:InvokeServer(Z)feedbackMain.InputBox.Input.Text=h wait(5)if feedbackMain.InputBox.Input.Text==h then feedbackMain.InputBox.Input.Text="\084\121\112\101 \102\101\101\100\098\097\099\107\047\098\117\103 \114\101\112\111\114\116 \104\101\114\101"end o=false end end)script.Parent.Button.MouseButton1Click:Connect(function()open=not open if open then feedbackMain:TweenPosition(UDim2.new(1,-300,1,-300),"\079\117\116","\081\117\105\110\116",.3,true)else feedbackMain:TweenPosition(UDim2.new(1,100,1,-300),"\079\117\116","\081\117\105\110\116",.3,true)end end)

feedbackMain.CharactersLeft.Text = maxCharacters - #feedbackMain.InputBox.Input.Text
feedbackMain.InputBox.Input.Changed:Connect(function()
	feedbackMain.CharactersLeft.Text = maxCharacters - #feedbackMain.InputBox.Input.Text
	if maxCharacters - #feedbackMain.InputBox.Input.Text < 0 then
		feedbackMain.CharactersLeft.TextColor3 = Color3.fromRGB(255,50,50)
		feedbackMain.SendButton.Style = Enum.ButtonStyle.RobloxRoundButton
	else
		feedbackMain.CharactersLeft.TextColor3 = Color3.fromRGB(255,255,255)
		feedbackMain.SendButton.Style = Enum.ButtonStyle.RobloxRoundDefaultButton
	end
end)

local db = false
feedbackMain.SendButton.MouseButton1Click:Connect(function()
	if not db and maxCharacters - #feedbackMain.InputBox.Input.Text >= 0 then
		db = true
		local msg = feedbackMain.InputBox.Input.Text
		feedbackMain.InputBox.Input.Text = "Sending Message..."
		local response = game.ReplicatedStorage.FilteringFunction:InvokeServer(msg)
		feedbackMain.InputBox.Input.Text = response
		wait(5)
		if feedbackMain.InputBox.Input.Text == response then
			feedbackMain.InputBox.Input.Text = "Type feedback/bug report here"
		end
		db = false
	end
end)

script.Parent.Button.MouseButton1Click:Connect(function()
	open = not open
	if open then
		feedbackMain:TweenPosition(UDim2.new(1,-300,1,-300),"Out","Quint",0.3,true)
	else
		feedbackMain:TweenPosition(UDim2.new(1,100,1,-300),"Out","Quint",0.3,true)
	end
end)
