So this test is very simple, with a part called “White” in replicated storage being cloned.
Someone gave me this script to randomize its position inside of a part, but it only works for bigger parts.
I have read other topics, but they’re not too similar to my problem.
Code:
local part = script.Parent
local PS = part.Size
while wait() do
local white = game.ReplicatedStorage.White:Clone()
white.CFrame = part.CFrame * CFrame.new(math.random(-PS.X/2,PS.X/2),math.random(-PS.Y/2,PS.Y/2),math.random(-PS.Z/2,PS.Z/2))
print(math.random(-PS.X/2,PS.X/2),math.random(-PS.Y/2,PS.Y/2),math.random(-PS.Z/2,PS.Z/2))
white.Parent = workspace
end
Also look at the y coordinate, it doesn’t change for some reason