[Gave up on it because it was useless, just realized this was easy to do. you can still get the module but don’t expect any updates on this]
Attach To Camera module !
What is this module ?
This module is a simple module that attaches a part of your choice into the camera !
How does it work ?
little model of how the module works
XOffset and YOffset determines the position of the part according to the screen
ZOffset determines the depth of the part according to the screen
NOTE : XOffset and YOffset values needs to be lower than the ZValue or else it will go offscreen
It also only works on localscripts or scripts with a RunContext of Client
Also, when attaching a part, if it is in a different parent than workspace, you don’t need to set the parent to workspace since the script is automatically parenting the part to the Camera
SCRIPTS :
Attach a part to the screen :
module.AttachObject(obj, XOffset, YOffset, ZOffset, followType)
--followTypes : StaticFollow, AlignOrientationFollow
Detach the part from the screen :
module.DetachObject(obj)
Get a list of every part attached to the screen :
module.GetAttachObjects()
Handled exceptions :
-
Error 1 : Error: All parameters must be provided.
It means that not everything has been provided and the script can’t process it so it crashes -
Error 2 : Error: The instance must be a BasePart, MeshPart, or UnionOperation.
It means that the type of instance you provided is not supported by the module -
Error 3 : Error : The selected object is not found in the camera. OR [path] is not a valid parent of Workspace.Camera
It means that no such attached part has been found
Let me know if there is errors not shown in this list
Get the module :
You can get the module here !
- Nice one !
- Could have some improvements but it’s a great one
- Meh…
- This module is bad
- you just created an abomination…
0 voters