Trying to get random position inside a part

I’m trying to write a coin generation script but I don’t know how to get a random position inside a part.

local part = script.Parent

local coin = game.ServerStorage.Coin

for i = 1, 10 do
	local newCoin = coin:Clone()
	newCoin.Parent = part
	newCoin.Position = Vector3.new(part.Position.X / 2, part.Position.Y + 1, part.Position.Z / 2)
end

Hello! Before posting any help topic, you should make your own research.
Here’s what I found so far in less than 1 minute : Find Random Position in Part.

Hello! Before posting such a comment, you should also ask if I did any research. Yes, I did. It might be not good or enough as you were expecting but still it doesn’t gives you any right to criticize this. This post wasn’t for starting a fight. I just want you to know I did research.

1 Like

Understand your reflect, sorry.

1 Like

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