UIS.WindowFocused with plugin

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? I’m making a plugin

  2. What is the issue? I need to know if the user have roblox studio focus or not

  3. What solutions have you tried so far? I tried to user UIS.WindowFocused but it doesn’t work

	UIS.WindowFocused:Connect(function()
		Focused = true
	end)

	UIS.WindowFocusReleased:Connect(function()
		Focused = false
	end)

I think you need to do:

plugin:Activate()

My plugin works, just the UIS.WindowFocused don’t fire
I tried to do plugin:Activate() and I get “Argument 1 missing or nil”

plugin:Activate(false) -- correction

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.