#automatic dropper not dropping correctly

1 messages · Page 1 of 1 (latest)

sturdy trench
#

following a tycoon dropper tutorial up until it came to the item (in my case: a rig) not dropping from the designated part, instead spawning the clone directly next to the original. I tried the same code with both the cylinder mesh I was originally using + a cube part but both have the same result which is why there's 3 2Bs.

obsidian wasp
sturdy trench
#

yes

obsidian wasp
#

try replacing

newItem.CFrame

with

newItem.HumanoidRootPart.CFrame
sturdy trench
#

alr

obsidian wasp
#

There's also likely a problem with the location it's trying to put the dropped item, as well

#

I'd recommend just replacing the

Dropper.CFrame * CFrame.new()

with something along the lines of:

Dropper.CFrame - Vector3.new(0, 2, 0)
sturdy trench
#

ok so I moved the coordinates just slightly below the itemdrop mesh too and added humanoidrootpart and it seemed to stop spawning 2B, then I cloned the cube part again and copied the code and uh

obsidian wasp
#

The reason it's doing that is because you're multiplying the part where you want it to drop from's CFrame by the location you want it to drop. The snippet I provided just above would solve that by placing the item 2 studs below the dropper part, but alternatively you could remove the "Dropper.CFrame *" entirely, and instead just set the newItem.HumanoidRootPart.CFrame directly to the CFrame.new()

sturdy trench
#

ahhh

sturdy trench
#

theyre falling below the map

obsidian wasp
#

I see, try lowering the value in the Vector3.new() to 1

earnest oliveBOT
#

studio** You are now Level 8! **studio

sturdy trench
#

kk

#

to clarify, you mean so the numbers will be (0, 1, 0)?

obsidian wasp
#

Though, now that I think about it, just to make sure they also don't drop sideways, you should probably do

CFrame.new(Dropper.Position - Vector3.new(0, 1 ,0))

instead

sturdy trench
#

alrighty

obsidian wasp
#

so it would be

newItem.HumanoidRootPart.CFrame = CFrame.new(Dropper.Position - Vector3.new(0, 1 ,0))
sturdy trench
obsidian wasp
#

Interesting

sturdy trench
obsidian wasp
#

you're making sure to comment the text at the end before testing, right

#

If it still doesn't work after making sure the text isn't causing it to error, could you please provide a picture of where the part dropping the item is?

sturdy trench
#

alr

#

doing something irl so i might be a while tho

#

oh my god

#

I didn't even know what commenting was mb, i forgor the --

#

set it to (0, 2, 0) again and it's almost perfect, I just need them to face foward

sage nexus
#

Did u write the code or ai

sturdy trench
#

following a tut on yt where the guy writes it out