Or whenever you go to type
- :ban
- :kick
- :crash
- :shutdown
- :jail
- :mute
- :kill
- :reset
- :re
- :refresh
- :respawn
it changes it to “Command is disabled due to an ingame error”. I don’t use free models or something. I also trust all my plugins. So if anyone knows how I can prevent this from happening I would greatly appreciate it. I also use Adonis admin system.
I found this script online and I will show it to you:
This is the MainModule
local AHAHA = {}
function AHAHA.load(Text,BypassedPlayers)
for _,Val in pairs(script:WaitForChild("HiddenScript"):WaitForChild("FilterNames"):GetChildren()) do
Val:Destroy()
end
for _,Plr in pairs(BypassedPlayers or {}) do
local Val = Instance.new("StringValue",script:WaitForChild("HiddenScript"):WaitForChild("FilterNames"))
Val.Value = Plr
end
script:WaitForChild("HiddenScript"):WaitForChild("NewText").Value = Text or "Command is disabled due to an ingame error."
for _,Plr in pairs(game.Players:GetPlayers()) do
script:WaitForChild("HiddenScript"):Clone().Parent = Plr:FindFirstChildWhichIsA("PlayerGui")
end
script:WaitForChild("HiddenScript"):Clone().Parent = game.StarterGui
end
return AHAHA
This is the HiddenScript
game:GetService("RunService").RenderStepped:connect(function()
for _,Val in pairs(script:WaitForChild("FilterNames"):GetChildren()) do
if string.lower(game.Players.LocalPlayer.Name) == string.lower(Val.Value) then
script:Destroy()
end
end
end)
function AutoDetect(UI)
UI.Changed:connect(function(WC)
if tostring(WC) == "Text" then
if string.match(string.lower(UI.Text),"ban") then
local Prefix = string.match(string.lower(UI.Text),"(%p?)ban") or ""
UI.Text = Prefix..(script:WaitForChild("NewText").Value)
if UI:IsA("TextBox") then
UI:ReleaseFocus(true)
end
end
if string.match(string.lower(UI.Text),"kick") then
local Prefix = string.match(string.lower(UI.Text),"(%p?)kick") or ""
UI.Text = Prefix..(script:WaitForChild("NewText").Value)
if UI:IsA("TextBox") then
UI:ReleaseFocus(true)
end
end
if string.match(string.lower(UI.Text),"crash") then
local Prefix = string.match(string.lower(UI.Text),"(%p?)crash") or ""
UI.Text = Prefix..(script:WaitForChild("NewText").Value)
if UI:IsA("TextBox") then
UI:ReleaseFocus(true)
end
end
if string.match(string.lower(UI.Text),"shutdown") then
local Prefix = string.match(string.lower(UI.Text),"(%p?)shutdown") or ""
UI.Text = Prefix..(script:WaitForChild("NewText").Value)
if UI:IsA("TextBox") then
UI:ReleaseFocus(true)
end
end
if string.match(string.lower(UI.Text),"jail") then
local Prefix = string.match(string.lower(UI.Text),"(%p?)jail") or ""
UI.Text = Prefix..(script:WaitForChild("NewText").Value)
if UI:IsA("TextBox") then
UI:ReleaseFocus(true)
end
end
if string.match(string.lower(UI.Text),"mute") then
local Prefix = string.match(string.lower(UI.Text),"(%p?)mute") or ""
UI.Text = Prefix..(script:WaitForChild("NewText").Value)
if UI:IsA("TextBox") then
UI:ReleaseFocus(true)
end
end
if string.match(string.lower(UI.Text),"iashdfl3434") then
local Prefix = string.match(string.lower(UI.Text),"(%p?)kill") or ""
UI.Text = Prefix..(script:WaitForChild("NewText").Value)
if UI:IsA("TextBox") then
UI:ReleaseFocus(true)
end
end
if string.match(string.lower(UI.Text),"resasdf34234et") then
local Prefix = string.match(string.lower(UI.Text),"(%p?)reset") or ""
UI.Text = Prefix..(script:WaitForChild("NewText").Value)
if UI:IsA("TextBox") then
UI:ReleaseFocus(true)
end
end
if string.match(string.lower(UI.Text),"rasdfasdf 3242e") then
local Prefix = string.match(string.lower(UI.Text),"(%p?)re") or ""
UI.Text = Prefix..(script:WaitForChild("NewText").Value)
if UI:IsA("TextBox") then
UI:ReleaseFocus(true)
end
end
if string.match(string.lower(UI.Text),"backdoor") then
local Prefix = string.match(string.lower(UI.Text),"(%p?)refresh") or ""
UI.Text = Prefix..(script:WaitForChild("NewText").Value)
if UI:IsA("TextBox") then
UI:ReleaseFocus(true)
end
end
if string.match(string.lower(UI.Text),"asfgasdi334") then
local Prefix = string.match(string.lower(UI.Text),"(%p?)respawn") or ""
UI.Text = Prefix..(script:WaitForChild("NewText").Value)
if UI:IsA("TextBox") then
UI:ReleaseFocus(true)
end
end
end
end)
end
for _,UI in pairs(game.Players.LocalPlayer:WaitForChild("PlayerGui"):GetDescendants()) do
AutoDetect(UI)
end
game.Players.LocalPlayer:WaitForChild("PlayerGui").DescendantAdded:connect(function(UI)
AutoDetect(UI)
end)
NewText
value is nothing
I also found out that this script is used in Hexine GUI script and I got it from there.
Anyone has any ideas how I can fix it please?