My plugins button doesn't work!

Hi! I created this script, and made this:

local TweenService: TweenService = game:GetService("TweenService")

local QuestionFrame: Frame = script.Parent.Parent
local TweenInformation: TweenInfo = TweenInfo.new(0.5, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut, 0, false)

script.Parent.MouseEnter:Connect(function(...)
	local Tween: Tween = TweenService:Create(QuestionFrame, TweenInformation, {BackgroundColor3 = Color3.fromRGB(0, 0, 0)})
	Tween:Play(...)
end)

script.Parent.MouseLeave:Connect(function(...)
	local Tween: Tween = TweenService:Create(QuestionFrame, TweenInformation, {BackgroundColor3 = Color3.fromRGB(82, 82, 82)})
	Tween:Play(...)
end)

script.Parent.MouseButton1Click:Connect(function(...)
	print("Clicked")
end)

However, in my plugin, it does nothing. No errors or anything. Hovering or clicking doesn’t work.

If you can help, please let me know. Thanks! WE

I solved this problem with ModuleScripts. Not the most convenient way in the world, but its the only way I can find.

1 Like

How did you manage to fix your problem with a ModuleScript? The same issue is happening to me, but I have no clue on how to make it work with a ModuleScript.

maybe your plugin is disabled, if thats the case go to your plugin settings and inable it

It is enabled, I have a button in the toolbar, and it shows the widget that I made along with the frames, buttons, etc.


other then that i dont no much about plugins. but this is what he said above

How did you manage to fix your problem with a ModuleScript? The same issue is happening to me, but I have no clue on how to make it work with a ModuleScript.

And I replied with this since I don’t know how to make it with a ModuleScript.

1 Like