I’ve recently started trying to learn to make plugins to make my workload easier (especially to make paths for NPCs)
I’ve made a code that follows the mouse, everything works fine, then I’ve tried to make code that runs on click, and it didn’t work.
Here’s my code:
local plugin = PluginManager():CreatePlugin()
local mouse = plugin:GetMouse()
function onClicked()
print("Hello World!")
end
mouse.Button1Down:Connect(onClicked)
Hey, I don’t like using that, I find it less clear. But your script shows that (like the previous response I have to use “MouseButton1Click” instead of “Button1Click”.