Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do i make it so the candies spawn in front of the door?

Im making a halloween themed game, where when u click a door candies spawn infront of the door, i made a quick position for it

		Candy.Position = door.Position + Vector3.new(math.random(-2,4),0,-3)

But if u rotate the door, the candies dont spawn on the front anymore since the axis changes

So? how do i make it so it spawns in front of the door?

1 answer

✓ Accepted answer

My suggestion: make an invisible part that you can not collide with around where the door is, then spawn the candies from that. That way if you rotate the door it wont change the spawn

2 comments

0

Oh right! i didn't think of that

0

:)

This discussion is preserved as it was. New answers, comments, and votes are closed.