You can write your topic however you want, but you need to answer these questions:
What do you want to achieve?
For my local script to work again.
What is the issue?
Literally 10 minutes ago this local script was working that was just executing remote event functions. Now the script just stops working after requiring a camera module
What solutions have you tried so far?
Removing the module allows the script to work however no errors are happening when the module is being required so I’m not sure what the problem is?
print('working')
local RS = game:GetService('ReplicatedStorage')
local TS = game:GetService('TweenService')
local UIS = game:GetService('UserInputService')
local RSS = game:GetService('RunService')
print('working')
local player = game.Players.LocalPlayer
print('working')
local CameraUtil = require(RS.Modules.CameraUtil)
print('working')
the last working that is printed is before the require.
If there is no error message, it is likely that CameraUtil itself requires a module that in return also requires CameraUtil. Or some other circular dependency is happening like so. This always causes your script to freeze silently with no error.
For some reason the module script only works when a character has spawned. I didn’t make the module so didn’t know this. Sorry for wasting your time. Thanks