I've been working on a game based around having first person combat with like swords and such and decided it would just be easier to have a tool modulescript to work faster but I'm having difficulties
local _T = {}
local Players = game:GetService("Players")
Tool = script.Parent
function _T.ThirdPerson()
Players.LocalPlayer.CameraMode = Enum.CameraMode.Classic
end
function _T.FirstPerson()
Players.LocalPlayer.CameraMode = Enum.CameraMode.LockFirstPerson
end
return _T
that is the module script and my code to call upon it is:
local Players = game:GetService("Players")
local ToolMod = require(game.Workspace.ToolMod)
Tool.Equipped:connect(FirstPerson)
Tool.Unequipped:connect(ThirdPerson)

2 comments
I've tried doing this before. It doesn't work for me either. Just turn it into an anonymous function that calls the module script function in the block.
Mainly my issue is you need to put the module nam before any line, aka T.Players = game_________ and _T.Tool =