How do you want it to be rotated? Send me an image of how you would want it to look like relative to tool.Parent.HumanoidRootPart.Position
Wait, so the trolly is a tool? Can’t you just use tool’s handle to be the trolly or?
Also, that doesnt look like a normally oriented trolly to me
The trolly is a model spawned by a tool because I had tried making it a tool but the characters’ hand went all weird and it was orientated like this. And I know that doesn’t look like a normally oriented trolly, this is just what it looks like right now.
Get a tool grip editor plugin
Thats basically all you need
I also tried doing that but it didn’t work either.
I just made mine real quick, it’s not that hard. I can run you thru the steps.
https://gyazo.com/58a366628a2ea21ac0c85cc92ae8c9f6
I’ll do it later, I’m a bit busy right now. But thank you.
Step 1: You take your model and you ungroup everything inside so all there is inside that model is a bunch of parts like this:
Step 2: Make sure every part in there has CanCollide
and Anchored
to false so that it doesn’t mess with our character when we equip it.
Step 3: You choose your main part, name it Handle and parent every other part inside the model to it, like this:
Step 4: Now for the welds, I used Easy Weld inside Moon Animator Plugin and I welded every part to each other:
Step 5: Now ungroup your model and parent the Handle to your tool like this:
Step 6: Enjoy your trolly shopping.
Yes, that’s what I first did for the tool but then I wanted it to not shake all the time, so I welded it to the HumanoidRootPart. But then I had the same problem I have right now, it is rotated.
If you are gonna be using a tool with the Handle being a trolly, you can easily fix the rotation using Tool Grip Editor. But if you still wanna do it using :SetPrimaryPartCFrame
which I don’t recommend because it introduces some uneeded problems, then you’d wanna set the trolly’s CFrame to the lookVector of the humanoidrootpart.
I already bought this and use this but it doesn’t work, it even shows that it’s the right way up but when I test it, it is still rotated. Even if I rotate it to the side using Tool Grip Editor, it doesn’t change.
Edit: I actually use Tool grip editor - Roblox by EgoMoose.
Show me how your tool looks like. And show me how the hand attaches to it when using Grip Editor.
You could have at least followed the guide I sent earlier, you were missing Step 3. Here you go.
functional trolly.rbxm (69.1 KB)
Edit: That’s very close to a nice number of KB
This is what I started with, I want to weld it to the HumanoidRootPart so it doesn’t move around. I changed it to work with the weld and now it looks like this:
It looks like this for me:
But it still moves with he hand, I guess we can use :SetPrimaryPartCFrame
, but let me look around see if there are any “better” solutions.
Edit: I think it looks different for you because you still have scripts messing around with the trolly’s position
you dont need a second argument. the first vector 3 determines where is it positioned, the second basically makes it so the front side of the primary part is looking at the position. If you are trying to orient it, use CFrame.new(position you want) * CFrame.Angles(math.rad(the orientation you want on x axis),math.rad(the same for y),math.rad(the same for z))
The reason it looks like that for me is because I changed the script a bit to make the WeldConstraint work. Because you parented all the parts to the Handle. Mine did look like yours but it’s because I changed the script it looks different.
After a few weeks worth of more work, I’ve done it. I finally understood what xeroexo was talking about except I didn’t clone a model. I just took away the handle and welded it to the HumanoidRootPart. Their post: