What i want to get:
Script Creates clone of model and puts it random position each 3 seconds , when putting it random position it also rotates it randomly in y axis
Issue is:
it does’t randomly rotates
local dummy = game.Workspace.Skeleton
local counter = script.counter
while true do
wait()
if counter.Value <= 6 then
local randomizerx = math.random(49.375,102.5)
local randomizerz = math.random(14.375,112)
local randomizerx2 = math.random(-56.125,3.875)
local randomizerz2 = math.random(42.875,112)
local random123 = math.random(-180,180)
wait(3)
local clone = dummy:Clone()
clone.Parent = game.Workspace
clone.PrimaryPart.CFrame = CFrame.new(Vector3.new(randomizerx,5.727,randomizerz))
clone.hitbox.CFrame = CFrame.new(Vector3.new(randomizerx,5.727,randomizerz))
clone.PrimaryPart.Rotation = Vector3.new(0,random123,0)
counter.Value = counter.Value + 1
end
end