Hello all!! I am currently trying to work on a system for a shooter, and I’m trying to get the barebones checks done. With this I need to connect a function from a module script to the event when the player clicks MB1.
Local Script:
local mouse = script.Parent.Parent:GetMouse()
local ShootModule = require(game.ReplicatedStorage.ModuleScript)
local Hit = mouse.Hit
local Target = mouse.Target
mouse.Button1Down:Connect(ShootModule.PlayerInfo(Target, Hit))``
Module Script:
``local module = {}
function module.PlayerInfo(target, hit)
print(target)
print(hit)
end
return module``