Mannequin Try-On (Homestore)

Hey guys I need your help here…

  1. What do you want to achieve?
    So! I have a homestore and i have this try-on feature where if you hover over a mannequins body with your mouse the clothes in the mannequin will appear in you avatars body! (as if you’re wearing it) and when you remove your mouse from the mannequin your avatar goes back to its original clothes. But there is one small problem…

  2. What is the issue?
    The mouse hovering only works in certain parts of the mannequin and I have no idea how to fix it! Here is a small gif I made to demonstrate the problem! NOTE: The try-on feature doesn’t work on the torso of the mannequin and on some of the mannequins one of the arms or legs don’t seem to work.
    https://gyazo.com/2b1e41bfbe056f4cfb0b1600e4bb002c

  3. What solutions have you tried so far?
    I have already tried looking around the Developer Forum to find a solution of some sort. But my try-on feature is kind of unique and I haven’t seen anyone else do anything similar do it. I’ve had people tell (“why cant you use the free try-on feature?”) the answer to this is that i simply don’t like it. The big wrench is just a big no for me.

Here is the my group if anyones interested in knowing what kind of clothes I make!
https://www.roblox.com/groups/3443875/Komerobi#!/about

If you think you have a solution to this please reply or send me a friend request on Discord! k!#7777
(I will pay if necessary)

Thank you so much!

1 Like

I would suggest ray-casting if you are not currently using that, Make a ray from the mouse to the target and check if it is indeed what it needs to be every time player moves mouse. And to limit the memory usage only run it if the Char is in a magnitude of 15 that would look something like this.

local Plr = game.players.localp;
local Mouse = Plr:GetMouse();
Mouse.Moved:Connec(function()
if Mag < 15 then
local UnitRay = Mouse.UnitRay;
local RayCast = Ray.New(Mouse.Origion, Mouse.Direction * 100);
local Hit, Pos, Ob = workspace:FindPartOnRay(Workspace);
print(Hit, Pos);
if Hit == ThatMique then
--Do stuff
end
end
end)
1 Like

Did you use a click detector? if so where is it?

Is it only on the torso part of the body?

Might be you hovering over the HumanoidRootPart and some conflict with the script that handles this.

You might want to make an invisible part that covers the whole mannequin so that your mouse target won’t go in between legs or arms, etc.

1 Like

Hi I was wondering if you fixed your problem and If I could possibly get this script because I hate the regular try on tool too and would love to have this one I am willing to pay for it too :slight_smile: