Programmer needed for CFrame/Math problem [15,000R$]

This should be a pretty quick feature to make for someone who is better at CFraming and general mathematics than I am. I’ll do my best to explain what I need, but if I’m unclear anywhere please feel free to ask any questions.

Also, I’m looking for this as soon as possible, as in, hopefully today, as it’s really just a single equation and won’t take much time to make.

The challenge:

I am making a spray painting feature in my game. A user can click anywhere in the brick, and the spray paint will be applied to the part of the brick that they click on. However, if they click on the edge/corner of the face of the brick, the spray paint brick can not extend over the edge of the brick. Refer to the following images for reference:

Where the user clicks

https://i.imgur.com/f0ZafKT.png

What mine does

https://i.imgur.com/MXq4DMG.png

What I need it to do

https://i.imgur.com/h6MIAIp.png

What I want:

The best way for you to deliver this (so that you’ll have no need for further information as to my specific use case) would be to create a simple tool with the following functionality:

  • Allows user to click Parts, applying another Part as to resemble spray paint (don’t worry about images)
  • Prevents the spray paint Part from going over the corner, but otherwise positioning the spray paint Part where the user clicked
  • Allows for varying spray paint sizes and has clear variables for determining that information

It doesn’t have to be very clean and the tool doesn’t need much functionality. I’m pretty much going to take the CFraming portions out and use it somewhere else, but I’d like to have a fully functioning demonstration of your solution.

Contact:
This is a super simple project. I think that we can get by with simply using the Personal Messaging feature here on Discourse.

Hopefully I’ve been clear and hopefully I’ve given some measure of what I’m trying to accomplish here. If not, please feel free to let me know.

PM’d a possible quick fix.

Assumed OP is using SurfaceGUIs and recommended to use ClipsDescendants. Rather he is requesting a resized part based solution.

Message me me if you’re still interested:

https://giant.gfycat.com/FemaleDeliciousGharial.mp4

It welds the part to the surface so no need to worry about anchored objects.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.