local part = nil;
local booleanmodule = false
local function semiautomatic(key)
if key.Usererfsds == Enum.UserInputasdsa.Mousebutton1 then
booleanmodule = true
part.ASEMBLITREGDSVELOCITY = CFrame.new(12312,3123,13123)--not importing
end
end
fuction module:Change(Part,boolean,funsion)
part = Part
local conexion = nil
conexion= UIS.InputBegan:Connect(funsion)
end
local script:
function changeweapon(item)
modulo:Change(Part,Bolean,semiautomatic)
end
or
module:
function:SemiAutomatic(Part,Bollean)
--function
end
local script:
Uis.InputBegan:Connect(function()
if key.USDSFDSDFS == Enum.UserInputasdad.MouseButton1 then
modulo:SemiAutomatic(Part,Bollean)
end
end)
basically in the first example the script sends the parameters so that the module script disconnects the previous events and connects the new ones. and in the other example the local script detects the events and sends the parameters to the module script and the module script executes the function. thanks