What do you want to achieve?
Making a randomized spawn
To make this simple i have a module script for spawns, But to make this simplier ill just be be using math.random for this example. The first run through the loop is perfectly fine, while the rest is all the same. Example: 5 (1st random) 10 (2nd) 10 (3rd) 10 (4th)
local x = math.random(-500,500)
local y = (The specific Y level)
local z = math.random(-500,500)
-- Those can be any values, I put mine so the region is from -500,-500 to 500 500
local clone = character.Clone:()
clone.Parent = Workspace
clone:MoveTo(Vector3.new(x,y,z))
If its a player you want to spawn randomly, do this:
local x = math.random(-500,500)
local y = (The specific Y level)
local z = math.random(-500,500)
– Those can be any values, I put mine so the region is from -500,-500 to 500 500
player.Character:MoveTo(Vector3.new(x,y,z))
I wasn’t looking for this sorry but thank you! I wanna understand why its just constantly printing the same number after it runs through the for loop one time? I’m using randomized spawns by using parts, I have everything setup! I just don’t understand why it wont rerandomize it self after it runs?