hello, I’m Zdevz12
since I didn’t find any module that will actually work on this. I got the source code of a plugin that did the same thing and totally modified it so that we can all use it.
basically projects an image to a part with position.
How does it work?
within the module you will insert folders, these folders will serve to insert the ID of your image and choose a random One.
The selected image will be automatically created and positioned with the size you give it.
How do I define the size?
within each image you will put the size you would like it to have, each image will have an int value called size. this is so that if an image is bigger than it should be and you don’t want to make them all smaller.
local module = require(modules.DecalSurface)
module.MakeDecalOnSurface("BulletHoles",normal,hit,pos)
--Change "BulletHoles" to the name of your folder.
--you can make a raycast to get the normal, pos and hitpart.
--That's all.
–The module is public and is prepared with a couple of folders to serve as an example. –
crédits: @edenojack
tags:
bullet holes, bullet hole, bullethole, decal, image, decal on surface, decal, surface