Math.rad spawning parts in the same location

Hello,

I’ve been trying to make a script that randomly clones coins to the workspace. The problem is, the position values of these coins are always the same while they shouldn’t. I’m using math.rad to solve this, however this doesn’t seem to be working. Any feedback on this?

Code:
image

(this is a ServerScript located in ServerScriptService)

You don’t use math.rad in Vector3 values only in CFrame.Angles()

1 Like

you need a new variable for the cloned coin

1 Like

I think you got rad and random confused. rad converts degrees into radians and math.random generates a random number.

1 Like

when you say “bronze.Position” its going to take the bronze that is in ReplicatedStorage

1 Like

Yeah, I fixed it. Now, the problem is after 5 seconds it goes back to somewhere else instead of getting cloned to somewhere else.

Did your solution, now after 5 seconds, it goes to somewhere else.


(fixed code). Now, the problem is, it goes to somewhere else instead of just getting cloned

1 Like

Fixed after removing cloned variables. Thanks for the help of everyone!