I need help for my script. This script used to be the main script for my new plugin, but something is not working. For me, the script works like it should be, but for my friend the script isn’t working? (Only the getmouse part isn’t working!) So what did i do wrong?
The script:
plugin:Activate(true)
local toolbar = plugin:CreateToolbar("Examples")
local AddTex = toolbar:CreateButton("Example", "Example", "rbxassetid://0")
local Enabled = false
local Effect = script.Parent.SelectionBox
script.Parent.Parent = game.CoreGui
local mouse = plugin:GetMouse()
mouse.Button1Down:Connect(function() --Not working
print("Clicked")
end)
hm, according to the developer wikipedia, it says,
GetMouse returns a PluginMouse that can be used while the plugin is active through Plugin:Activate .
i have no clue with plugins, but maybe put plugin:Activate() before getting the mouse?
also, try highlighting all the parts of your script then you can click the symbol that looks like </> this which will make your script into codeblock, making it easier for others to read scripts