Oliver Hope 261 Posted December 18, 2018 (edited) hey i made a tempary array so i could splice some elements out i wanted to keep a refrence of all the original elements but when splicing the tempary one it seems to splice the first one aswell basically im trying to choose a random player from an array of players except the one that triggered the trigger zone JUGGERNAUT_1.0.6.zip Edited December 18, 2018 by Oliver Hope_P1 Share this post Link to post Share on other sites
Houp 237 Posted December 19, 2018 Hi you need to copy the first one. Arrays are reference types. Assigning them to a new variable will not make a new copy. Use "Slice" to copy original array. Share this post Link to post Share on other sites
Oliver Hope 261 Posted December 19, 2018 10 hours ago, Houp said: Hi you need to copy the first one. Arrays are reference types. Assigning them to a new variable will not make a new copy. Use "Slice" to copy original array. Ohhh that is very interesting and makes lots of sense, thanks a lot, i learnt something new Share this post Link to post Share on other sites