How would I go about making a container holding system?

ik the tite might sound weird, but basically I’m stuck on making a container system.
if u dont know what im talking about, it’s basically a container of some sort welded to the player, then an object unanchored and unwelded in that container. in theory it should work, but I tried it with a hollow box with a opening on top as the container and a cube as the object. the cube just kept glitching out of the container whenever I move even though they both have can collide on.
im trying to make a balancing game.

do you have any ideas how to fix it or a better way to make it? help would be appreciated

if u would like any of the code, feel free to ask! (its just a script that welds the container and clones the cube)

anyone? please help (idc if its only an idea)

I made what I thought you’re describing, but for me it works, it sometimes escapes but that’s just Roblox physics, and if it can’t escape there’s no challenge in balance.

here’s proof:


I do have to mention something, I added a script so roblox doesn’t turn off cancollide on my tool handle:

script.Parent.Handle:GetPropertyChangedSignal "CanCollide" : Connect(function()
	script.Parent.Handle.CanCollide = true
end)
1 Like

hmm. thats cool. Can i see your code and is it a server or local script?

(edit: i have to go out for one hour so i might not see ur message)

That singular script is the code, and it is inside of a tool. It is a server script.
image
the handle is a unionoperation.

1 Like

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