MrAz18485
(MrAz18485)
November 28, 2020, 3:37pm
#1
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:
(this is a ServerScript located in ServerScriptService)
Proscled
(Proscled)
November 28, 2020, 3:41pm
#2
You don’t use math.rad in Vector3 values only in CFrame.Angles()
1 Like
NACER_RPG
(NACER)
November 28, 2020, 3:42pm
#3
you need a new variable for the cloned coin
1 Like
riceking10
(riceking10)
November 28, 2020, 3:43pm
#4
I think you got rad and random confused. rad converts degrees into radians and math.random generates a random number.
1 Like
NACER_RPG
(NACER)
November 28, 2020, 3:44pm
#5
when you say “bronze.Position” its going to take the bronze that is in ReplicatedStorage
1 Like
MrAz18485
(MrAz18485)
November 28, 2020, 3:45pm
#6
Yeah, I fixed it. Now, the problem is after 5 seconds it goes back to somewhere else instead of getting cloned to somewhere else.
MrAz18485
(MrAz18485)
November 28, 2020, 3:45pm
#7
Did your solution, now after 5 seconds, it goes to somewhere else.
MrAz18485
(MrAz18485)
November 28, 2020, 3:46pm
#8
(fixed code). Now, the problem is, it goes to somewhere else instead of just getting cloned
1 Like
MrAz18485
(MrAz18485)
November 28, 2020, 4:00pm
#9
Fixed after removing cloned variables. Thanks for the help of everyone!