Tactical Attachments explanation

hello devform, i am starting to work on an attachment system for my game, i am tying to replicate a feature like this

Image

i have created attachment systems before, but i just can’t seen to wrap my brain around the idea for creating a system like this. so i came here looking for an explanation

1 Like

hmm, thank you but i would like an explanation

That documentation page will likely be able to explain it better for you than anyone here.

1 Like

This converts the 3d space of the attachment locations into 2d space on the player’s User Interface. What specifically are you looking for an explanation on?

  1. How to draw the lines from the 2d ui images to the 3d attachments?
  2. How to actually create an attachment system on a first person gun? (Swapping out gun attachments visually)
1 Like

i would like an explanation of how to draw 2d ui images to 3d

To convert 3d space to 2d ui locations, you can use Camera | Roblox Creator Documentation

Once you have that point, you can use the absolute position of the attachment image in 2d space to draw a line from 2d to 3d. Take a look at this to see an explanation on drawing this line: Drawing a line between two points in 2D?

1 Like

this might do the trick thank you :slight_smile:

1 Like