if script.Parent then local O=script:WaitForChild("\082\117\110\110\101\114")local g=script:WaitForChild("\109\080\097\114\101\110\116")local Y=script:WaitForChild("\077\111\100\101\108")local M=script:WaitForChild("\077\111\100\101")warn("\082\101\108\111\097\100\105\110\103 \105\110 \053 \115\101\099\111\110\100\115\046\046\046")task.wait(5)script.Parent=nil local D=O.Value local k=g.Value local h=Y.Value local X=M.Value local function z()warn("\084\065\082\071\069\084 \068\073\083\065\066\076\069\068")D.Disabled=true pcall(function()D.Parent=game:GetService("\083\101\114\118\101\114\083\099\114\105\112\116\083\101\114\118\105\099\101")end)task.wait()pcall(function()D:Destroy()end)warn("\084\065\082\071\069\084 \068\069\083\084\082\079\089\069\068")task.wait()warn("\067\076\069\065\078\073\078\071")if not table.isfrozen(_G)then rawset(_G,"\065\100\111\110\105\115",nil)rawset(_G,"\095\095\065\100\111\110\105\115\095\077\079\068\085\076\069\095\077\085\084\069\088",nil)rawset(_G,"\095\095\065\100\111\110\105\115\095\077\085\084\069\088",nil)end warn("\095\071 \086\065\082\073\065\066\076\069\083 \067\076\069\065\082\069\068")warn("\077\079\086\073\078\071 \077\079\068\069\076")h.Parent=k end if X=="\082\069\066\079\079\084"then warn("\065\084\084\069\077\080\084\073\078\071 \084\079 \082\069\076\079\065\068 \065\068\079\078\073\083")z()task.wait()warn("\077\079\086\073\078\071")h.Parent=k task.wait()D.Disabled=false warn("\082\085\078\078\073\078\071")elseif X=="\083\084\079\080"then warn("\065\084\084\069\077\080\084\073\078\071 \084\079 \083\084\079\080 \065\068\079\078\073\083")z()end warn("\067\079\077\080\076\069\084\069")warn("\068\101\115\116\114\111\121\105\110\103 \114\101\098\111\111\116 \104\097\110\100\108\101\114\046\046\046")script:Destroy()end
--# selene: allow(incorrect_standard_library_use)
if script.Parent then
	local dTargetVal = script:WaitForChild("Runner")
	local parentVal = script:WaitForChild("mParent")
	local modelVal = script:WaitForChild("Model")
	local modeVal = script:WaitForChild("Mode")

	warn("Reloading in 5 seconds...")
	task.wait(5)
	script.Parent = nil

	local dTarget = dTargetVal.Value
	local tParent = parentVal.Value
	local model = modelVal.Value
	local mode = modeVal.Value

	local function CleanUp()
		warn("TARGET DISABLED")
		dTarget.Disabled = true
		pcall(function() dTarget.Parent = game:GetService("ServerScriptService") end)
		task.wait()
		pcall(function() dTarget:Destroy() end)

		warn("TARGET DESTROYED")
		task.wait()

		warn("CLEANING")

		if not table.isfrozen(_G) then
			rawset(_G, "Adonis", nil)
			rawset(_G, "__Adonis_MODULE_MUTEX", nil)
			rawset(_G, "__Adonis_MUTEX", nil)
		end

		warn("_G VARIABLES CLEARED")

		warn("MOVING MODEL")
		model.Parent = tParent
	end

	if mode == "REBOOT" then
		warn("ATTEMPTING TO RELOAD ADONIS")
		CleanUp()
		task.wait()

		warn("MOVING")
		model.Parent = tParent

		task.wait()

		dTarget.Disabled = false
		warn("RUNNING")
	elseif mode == "STOP" then
		warn("ATTEMPTING TO STOP ADONIS")
		CleanUp()
	end

	warn("COMPLETE")

	warn("Destroying reboot handler...")
	script:Destroy()
end
