When I launch this script it gives “Workspace.Tree.Script:5: invalid argument #2 to ‘random’ (interval is empty)”
Can someone tell why and give solution?
local X, Y, Z = script.Parent.Size.X, script.Parent.Size.Y, script.Parent.Size.Z
while task.wait(math.random(20, 60)) do
local apple = game.ServerStorage.AppLe:Clone()
apple.Handle.Position = Vector3.new(math.random(script.Parent.Size.X, -script.Parent.Size.X), Y, math.random(script.Parent.Size.Z, -script.Parent.Size.Z))
apple.Parent = workspace
end